Comments (9)
Hi @westonganger , do we have the support for hyperlinks now? I checked the doc and code, seems I can not find it.
from spreadsheet_architect.
No there isnt currently support for hyperlinks.
Best way for the Spreadsheet Architect API would be to implement it as a column type, however this would not support any custom text to show rather than the URL.
For XLSX: The axlsx docs above sort of elude to custom text support with the "Next Sheet" hyperlink however its not obvious to me how that works.
For ODS: We can use https://github.com/westonganger/rodf/blob/270f4ebbc401b9cfc282bc465fe54eaee0d04e63/spec/cell_spec.rb#L80 rodf does support the custom text however not sure how we would make SpreadsheetArchitect utilize this. May just have to compromise on no custom text we will see.
from spreadsheet_architect.
Discussing Axlsx custom text capabilities in caxlsx/caxlsx#160
For SpreadsheetArchitect we will not utilize custom text since the API for spreadsheet architect doesnt support it in an intuitive manner.
from spreadsheet_architect.
@teddy1004 we now support hyperlinks for XLSX and ODS. If you pull the master branch then you should be able to test this feature, would love to get your feedback.
from spreadsheet_architect.
thanks @westonganger ! really appreciate your hard work, I'd like to test it out, but I don't know how should I use it? will it parse the URL in the text automatically or do I need to configure it manually? can you please give me more guides on this? huge thanks!
from spreadsheet_architect.
You could follow the example spec from the PR
That should be enough to get you going. Shouldnt need any manual configuration other than setting the column type.
from spreadsheet_architect.
@westonganger thank you so much! I tried with URLs and it works! but I also got columns that have both string and hyperlinks, seems there's no way to do so, right?
from spreadsheet_architect.
@teddy1004 I have created the following issue #50 to implement the ability to dynamically set the column type
from spreadsheet_architect.
I've now merged #51 to master to allow dynamically setting the column type
from spreadsheet_architect.
Related Issues (20)
- Time cell in ODS file HOT 8
- Add ability to pass :instances option to SpreadsheetArchitect class methods HOT 3
- Improve test suite automation HOT 3
- Add ability to pass an alternative method name as a symbol to the :spreadsheet_columns option HOT 2
- Add conditional_row_styles option HOT 2
- Axlsx deprecation warning HOT 3
- Argument column_widths does not seem to work HOT 5
- Time formatting problem HOT 4
- Keep the header row from scrolling HOT 5
- Unable to use my own spreadsheet_column method HOT 1
- Support caxlsx gem HOT 7
- ODS column type(s) ineffective HOT 5
- XLSX_COLUMN_TYPES "already initialized constant" warning HOT 1
- Add support for :active_pane to XLSX :freeze option HOT 1
- Add option to remove all default styles HOT 1
- How to add a value to a specific cell using spreadsheet architecture gem? HOT 2
- I'm running out of memory .... HOT 2
- Add support for Proc/lambda on column_types HOT 2
- [Feature Request] I'd like to be able to highlight a different cell in each row HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spreadsheet_architect.