Skip to content

Hint markup function #141

@timka-s

Description

@timka-s

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions