Behaviors

The following behaviors ship with Atlas.

Sys.UI.Behavior (General Class)

Method

Description

get_dataContext()

Returns the behavior’s data context

setOwner(control)

Links the behavior to its owner element

Sys.UI.PopupBehavior

Method

Description

get_parentElement()

Returns the parent element of the pop-up

set_parentElement(element)

Sets the parent element of the pop-up

get_positioningMode()

Returns the positioning mode of the pop-up

set_positioningMode(mode)

Sets the positioning mode of the pop-up

get_x()

Returns the horizontal position of the pop-up

set_x(x)

Sets the horizontal position of the pop-up

get_y()

Returns the vertical position of the pop-up

set_y(y)

Sets the vertical position of the pop-up

hide()

Hides the pop-up

show()

Shows the pop-up

initialize()

Initializes the behavior

Sys.UI.ClickBehavior

Method

Description

clickHandler()

Emulates a click

initialize()

Initializes the behavior

Sys.UI.HoverBehavior

Method

Description

get_hoverElement()

Returns the element to hover over

set_hoverElement(element)

Sets the element to hover over

get_unhoverDelay()

Returns the unhover delay (in milliseconds)

set_unhoverDelay(ms)

Sets the unhover delay (in milliseconds)

initialize()

Initializes the behavior

Sys.UI.AutoCompleteBehavior

Method

Description

get_completionInterval()

Returns the interval after which the field entry is completed

set_completionInterval(value) ...

Get Programming Atlas now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.