-
-
Notifications
You must be signed in to change notification settings - Fork 144
Conversation
@HammadTheOne The linting errors can be fixed by running |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- As mentioned in the previous comment, make sure
npm run lint
andnpm run format
don't return errors. - Need to add a changelog entry
- Needs a simple test (eg. making sure that the
title
is present in the DOM -- check outget_attribute(...)
in the tests and https://github.com/plotly/dash-core-components/blob/dev/tests/integration/link/test_link_event.py for a starting point testing links)
Co-Authored-By: alexcjohnson <[email protected]>
''' | ||
return document.getElementById("link1").getAttribute("title"); | ||
''' | ||
) |
There was a problem hiding this comment.
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')
There was a problem hiding this comment.
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.
|
There was a problem hiding this 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
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 .