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 tooltip() API #662

Merged
merged 33 commits into from Jul 14, 2023
Merged

Add tooltip() API #662

merged 33 commits into from Jul 14, 2023

Conversation

cpsievert
Copy link
Collaborator

@cpsievert cpsievert commented Jul 6, 2023

Adds tooltip(), update_tooltip(), and toggle_tooltip()

@cpsievert cpsievert marked this pull request as draft July 6, 2023 20:59
@cpsievert cpsievert requested a review from gadenbuie July 6, 2023 21:00
R/tooltip.R Outdated Show resolved Hide resolved
R/tooltip.R Outdated Show resolved Hide resolved
R/tooltip.R Outdated Show resolved Hide resolved
@cpsievert cpsievert marked this pull request as ready for review July 12, 2023 23:50
@cpsievert
Copy link
Collaborator Author

@gadenbuie this is ready for another (closer) look

Copy link
Member

@gadenbuie gadenbuie left a comment

Choose a reason for hiding this comment

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

Nice! Here are comments and thoughts from the R side, I'll read through the JS side later today.

NAMESPACE Outdated Show resolved Hide resolved
R/card.R Show resolved Hide resolved
R/tooltip.R Outdated Show resolved Hide resolved
R/tooltip.R Outdated Show resolved Hide resolved
R/tooltip.R Outdated Show resolved Hide resolved
srcts/src/components/tooltip.ts Outdated Show resolved Hide resolved
srcts/src/components/tooltip.ts Outdated Show resolved Hide resolved
srcts/src/components/tooltip.ts Outdated Show resolved Hide resolved
R/tooltip.R Outdated Show resolved Hide resolved
R/tooltip.R Outdated

#' @describeIn tooltip Update the contents of a tooltip.
#' @export
tooltip_update <- function(id, ..., session = get_current_session()) {
Copy link
Member

Choose a reason for hiding this comment

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

Should we support updating other aspects of the tooltip, like placement or options?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Potentially, maybe in the future?

srcts/src/components/tooltip.ts Outdated Show resolved Hide resolved
Copy link
Member

@gadenbuie gadenbuie left a comment

Choose a reason for hiding this comment

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

Awesome! :shipit:

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

Successfully merging this pull request may close these issues.

None yet

2 participants