Home Reference Source
public class | source

ToolTip

Extends:

react~Component → ToolTip

Main tooltip class.

React Props:

NameTypeAttributeDescription
selection Object the Selection instance

Method Summary

Public Methods
public

getButtons(selection: String): [Button]

builds out the buttons for the tooltip

public

getPosition(selection: Object): [Object]

gets the middle of the left and right of the Selection instance

public

render(): *

Public Methods

public getButtons(selection: String): [Button] source

builds out the buttons for the tooltip

Params:

NameTypeAttributeDescription
selection String

the selections text

Return:

[Button]

buttons - list of Button instances

public getPosition(selection: Object): [Object] source

gets the middle of the left and right of the Selection instance

Params:

NameTypeAttributeDescription
selection Object

the selection instance

Return:

[Object]

obj - object with top and left defined to be used as style rules

public render(): * source

Return:

*