GithubHelp home page GithubHelp logo

Comments (9)

teddy1004 avatar teddy1004 commented on May 17, 2024

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.

westonganger avatar westonganger commented on May 17, 2024

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.

westonganger avatar westonganger commented on May 17, 2024

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.

westonganger avatar westonganger commented on May 17, 2024

@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.

teddy1004 avatar teddy1004 commented on May 17, 2024

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.

westonganger avatar westonganger commented on May 17, 2024

You could follow the example spec from the PR

describe "hyperlinks" do

That should be enough to get you going. Shouldnt need any manual configuration other than setting the column type.

from spreadsheet_architect.

teddy1004 avatar teddy1004 commented on May 17, 2024

@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.

westonganger avatar westonganger commented on May 17, 2024

@teddy1004 I have created the following issue #50 to implement the ability to dynamically set the column type

from spreadsheet_architect.

westonganger avatar westonganger commented on May 17, 2024

I've now merged #51 to master to allow dynamically setting the column type

from spreadsheet_architect.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.