Detailed Description

Manages the currently focused element.

Static Public Member Functions

static void MoveUp ()
 If there is an element focused, this will move focus to the nearest focusable element above. You can define 'focusable' on any element, or use a tag that is focusable anyway (input, textarea, a etc). You can also define focus-up="anElementID" to override which element will be focused next. More...
 
static void MoveDown ()
 If there is an element focused, this will move focus to the nearest focusable element below. You can define 'focusable' on any element, or use a tag that is focusable anyway (input, textarea, a etc). You can also define focus-down="anElementID" to override which element will be focused next. More...
 
static void MoveLeft ()
 If there is an element focused, this will move focus to the nearest focusable element to the left. You can define 'focusable' on any element, or use a tag that is focusable anyway (input, textarea, a etc). You can also define focus-left="anElementID" to override which element will be focused next. More...
 
static void MoveRight ()
 If there is an element focused, this will move focus to the nearest focusable element to the right. You can define 'focusable' on any element, or use a tag that is focusable anyway (input, textarea, a etc). You can also define focus-right="anElementID" to override which element will be focused next. More...
 
static void TabNext ()
 Moves the focus to the next element as defined by tabindex. If there is no currently focused element, a tabindex of 0 will be searched for. If that's not found, then the first focusable element in the DOM will be used. More...
 

Properties

static Element Current [get]
 A shortcut to the current focused element (Input.Focused). More...
 

Member Function Documentation

static void PowerUI.Focus.MoveDown ( )
inlinestatic

If there is an element focused, this will move focus to the nearest focusable element below. You can define 'focusable' on any element, or use a tag that is focusable anyway (input, textarea, a etc). You can also define focus-down="anElementID" to override which element will be focused next.

static void PowerUI.Focus.MoveLeft ( )
inlinestatic

If there is an element focused, this will move focus to the nearest focusable element to the left. You can define 'focusable' on any element, or use a tag that is focusable anyway (input, textarea, a etc). You can also define focus-left="anElementID" to override which element will be focused next.

static void PowerUI.Focus.MoveRight ( )
inlinestatic

If there is an element focused, this will move focus to the nearest focusable element to the right. You can define 'focusable' on any element, or use a tag that is focusable anyway (input, textarea, a etc). You can also define focus-right="anElementID" to override which element will be focused next.

static void PowerUI.Focus.MoveUp ( )
inlinestatic

If there is an element focused, this will move focus to the nearest focusable element above. You can define 'focusable' on any element, or use a tag that is focusable anyway (input, textarea, a etc). You can also define focus-up="anElementID" to override which element will be focused next.

static void PowerUI.Focus.TabNext ( )
inlinestatic

Moves the focus to the next element as defined by tabindex. If there is no currently focused element, a tabindex of 0 will be searched for. If that's not found, then the first focusable element in the DOM will be used.

Property Documentation

Element PowerUI.Focus.Current
staticget

A shortcut to the current focused element (Input.Focused).