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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.