Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

Added title prop to dcc.Link #768

Merged
merged 10 commits into from
Mar 17, 2020
Merged

Added title prop to dcc.Link #768

merged 10 commits into from
Mar 17, 2020

Conversation

HammadTheOne
Copy link
Collaborator

This PR adds the title property to dcc.Link, bringing it more into line with what is expected of a html style link component. The title attribute of the link allows you to add supplementary information to a hyperlink which appears when mouse-hovering over it.

Adding as part of feature request in #586 .

Closes #586 .

@Marc-Andre-Rivet
Copy link
Contributor

@HammadTheOne The linting errors can be fixed by running npm run format locally. This will run prettier and update your files.

Copy link
Contributor

@Marc-Andre-Rivet Marc-Andre-Rivet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'''
return document.getElementById("link1").getAttribute("title");
'''
)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this work instead?

dash_dcc.find_element('#link1').get_attribute('title')

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added in f80f844. This works, thank you for the suggestion.

@Marc-Andre-Rivet
Copy link
Contributor

test-37 failure looks like flakiness in the tests, not something caused by this PR.

Copy link
Contributor

@Marc-Andre-Rivet Marc-Andre-Rivet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💃 LGTM. Just need a successful flaky test run on py36

@HammadTheOne HammadTheOne merged commit eb4c98e into dev Mar 17, 2020
@HammadTheOne HammadTheOne deleted the 586-link-title-prop branch March 17, 2020 21:09
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature request: Adding title to Link
3 participants