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

Hint markup function #141

Open
timka-s opened this issue May 30, 2024 · 0 comments
Open

Hint markup function #141

timka-s opened this issue May 30, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@timka-s
Copy link

timka-s commented May 30, 2024

Goal: Inline optional help for user to understand data

New function for calculated field - Hint(content: Markup, body: Optional[Markup])
When user hover hint body - he view hint box with content
If body not defined - use some default hint symbol, like ℹ️

Example A - We have some complex calculation and want show formula and source data:

SquareTextField = Markup(SquareField, Hint(Markup("Formula is ", Bold("Pi * R * R"), ", where ", Bold("R"), " is", RadiusField), Bold("?"))

Example B - We have property table (Owner: id, Name: str, Value: str) and want show hint for some properties

NameWithHint = Markup(
  Name,
  IF(
     Name = "TTM",
     Hint("Time from store...."),
     Markup("")
  )
)

image

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

No branches or pull requests

2 participants