Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a url but setting the anchor's text #69

Open
Nerian opened this issue Nov 13, 2020 · 0 comments
Open

Add a url but setting the anchor's text #69

Nerian opened this issue Nov 13, 2020 · 0 comments

Comments

@Nerian
Copy link

Nerian commented Nov 13, 2020

Hi,

We can add add urls like this:

worksheet.append_row([
  FastExcel::URL.new("https://github.com/Paxa/fast_excel"),
  FastExcel::URL.new("postgres://localhost")
], url_format)

But how can we add a url to the excel file and set the text that will be the anchor to the url? Essentially I want to show a title, and when the user clicks the title it goes to a url.

Something like this would be useful:

FastExcel::URL.new("Super link", "https://github.com/Paxa/fast_excel"),

How can I do this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant