Skip to content

Refactor Tooltip Implementation to Utilize Native Properties instead. #1696

Description

@TheNoumanDev

Current Issue:

  • Implementation: Tooltip is currently implemented as a separate widget.
  • Problem: This approach contradicts Ensemble’s design philosophy, where widgets should not need to be wrapped by another widget solely to provide additional properties.

Proposed Solution:

  • Integration: Introduce native Tooltip properties directly within each Ensemble widget.
  • Properties to Add:
Column:
  styles:
    height: 100
    backgroundColor: red
    tooltip:
      message: "Custom styled tooltip"
      onTriggered: |-
          console.log('Tooltip was triggered');
      styles:
        backgroundColor: "#2196F3"
        triggerMode: longPress
        textStyle:
          fontSize: 16
          color: "#FFFFFF"
          fontWeight: bold
  children:
    - Text:
        text: Styled Tooltip

CC: @kmahmood74

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

  • Status
    Released

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions