Class: ToolTipComponent

ToolTipComponent(dataObjectopt, options)

ToolTipComponent shows a Component next to another Component If possible, it's better to use the [title](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/title) element attribute, but this is useful for tooltips with more than text.

Constructor

new ToolTipComponent(dataObjectopt, options)

Parameters:
Name Type Attributes Default Description
dataObject DataObject <optional>
null
options Object
Properties
Name Type Description
component Component
Source:
To Do:
  • Replace the hacky 'X' close widget with something better
Example
const tipInfoComponent = new MyInfoComponent(...) // The tool tip info
const toolTipComponent = new ToolTipComponent(null, {
	component: tipInfoComponent
})

const targetComponent = new MyComponent(...) // The component which needs a tool tip

// On some user action, show the tool tip next to some Component
toolTipComponent.show(targetComponent)

Methods

show(target)

Parameters:
Name Type Default Description
target Component null
Source: