Show:

Widget extension, which can be used to suggest alignment points based on position attribute to base Widget class, through the Base.build method. It also tries to find the best position in case the widget doesn't fit it's constrainment node.

Methods

_afterPositionChangePAS

(
  • event
)
protected

Fire after boundingBox position changes.

Parameters:

  • event Object

_afterRenderUIPAS

(
  • event
)
protected

Fire after renderUI method.

Parameters:

  • event Object

_canWidgetAlignToNode

(
  • node
  • position
)
protected

Returns true if the widget can fit inside it's constrainment node.

Parameters:

  • node Object
  • position Object

_findBestPosition

(
  • node
)
protected

Finds the position in which the widget fits without having to have its coordinates changed due to its constrainment node.

Parameters:

  • node Object

_getPosition

(
  • val
)
protected

Set the position attribute.

Parameters:

_onUISetAlignPAS

(
  • node
)
protected

Fire before _uiSetAlign method.

Parameters:

  • node Object

_syncPositionUI

(
  • val
  • prevVal
)
protected

Sync the boundingBox position CSS classes.

Parameters:

  • val Object
  • prevVal Object

_uiSetPosition

(
  • val
  • prevVal
)
protected

Set the boundingBox position on the UI.

Parameters:

  • val Object
  • prevVal Object

_validatePosition

(
  • value
)
Boolean protected

Validates the value of position attribute.

Parameters:

  • value Object

Returns:

Boolean:

<p><p><p>True only if value is 'bottom', 'top', 'left' or 'right'.</p></p></p>

initializer

()

Construction logic executed during WidgetPositionAlignSuggestion instantiation. Lifecycle.

Properties

ATTRS

Object static

Static property used to define the default attribute configuration.

POSITION_ALIGN_SUGGESTION

Property defining the align points based on the suggested position.

Attributes

alignNode

Suggest alignment for the node based on the position suggestion.

position

String

Determine the position of the tooltip.

Default: top

position

protected

Guess alignment points for the position.