JavaScript

A5.uelement Namespace

Description

The namespace for utility methods for element manipulation.

Methods

attr Method

Get, set, check, toggle and/or remove attributes of an element.

cls Method

Get and/or set the class names of an element.

getScroll Method

Gets the scroll position of the passed in element.

getScrollParent Method

Gets the first parent element that scrolls starting from the element passed in.

hide Method

Hide an element that is hidden.

position Method

Position an element relative to a target or its container.

setContent Method

Sets the content of an element. Similar to calling .innerHTML on a DOM element with additional handling to preserve touch behaviors.

setContentRetain Method

Sets an element to be retained when A5.u.element.setContent is used on a parent of the element.

setScroll Method

Sets the scroll position of the passed in element.

setScrollTo Method

Scrolls the scrollable parent of the passed in element to show that element.

show Method

Show an element that is hidden.

shown Method

Whether or not an element is shown.

style Method

Get and/or set the inline style of an element.

toggle Method

Toggle the display of an element.

transition Method

Programmatically perform a CSS transition.