FlexLayoutAttributeOption

Options for applying flex layout attributes to flex object.

Methods:

addEventListener, getElements, removeEventListener, toSource, toSpecifier

Objects:

Boolean, EventListeners, Events, FlexDirection, FlexEnum, FlexPosition, FlexSpacing, FlexWidthHeightMode, FlexWrap, Number, Object, String,

Hierarchy:

Superclass: Preference

Class: FlexLayoutAttributeOption

Property Listing

Property

Type

Access

Description

alignContent

FlexPosition

FlexPosition.FLEX_CENTER

FlexPosition.FLEX_END

FlexPosition.FLEX_START

FlexEnum

FlexEnum.FLEX_AUTO

read/write

Aligns a flex container's lines within when there is extra space in the cross-axis. Can return: FlexPosition enumerator or FlexEnum enumerator.

alignItems

FlexPosition

FlexPosition.FLEX_CENTER

FlexPosition.FLEX_END

FlexPosition.FLEX_START

FlexEnum

FlexEnum.FLEX_AUTO

read/write

Defines the default behavior for how flex items are laid out along the cross axis. Can return: FlexPosition enumerator or FlexEnum enumerator.

eventListeners

EventListeners EventListener

readonly

A collection of event listeners.

events

Events Event

readonly

A collection of events.

flexDirection

FlexDirection

FlexDirection.FLEX_COLUMN

FlexDirection.FLEX_COLUMN_REVERSE

FlexDirection.FLEX_ROW

FlexDirection.FLEX_ROW_REVERSE

read/write

The direction of the flex container

flexGapColumn

Number

String

read/write

The column gap between flex items

flexGapRow

Number

String

read/write

The row gap between flex items

flexHeightMode

FlexWidthHeightMode

FlexWidthHeightMode.FLEX_FILL

FlexWidthHeightMode.FLEX_FIXED

FlexEnum

FlexEnum.FLEX_AUTO

read/write

The height behavior of the flex container. Can return: FlexWidthHeightMode enumerator or FlexEnum enumerator.

flexPaddingBottom

Number

String

read/write

The bottom padding of the flex container

flexPaddingLeft

Number

String

read/write

The left padding of the flex container

flexPaddingRight

Number

String

read/write

The right padding of the flex container

flexPaddingTop

Number

String

read/write

The top padding of the flex container

flexWidthMode

FlexWidthHeightMode

FlexWidthHeightMode.FLEX_FILL

FlexWidthHeightMode.FLEX_FIXED

FlexEnum

FlexEnum.FLEX_AUTO

read/write

The width behavior of the flex container. Can return: FlexWidthHeightMode enumerator or FlexEnum enumerator.

flexWrap

FlexWrap

FlexWrap.NO_WRAP

FlexWrap.WRAP

FlexWrap.WRAP_REVERSE

read/write

Whether flex items are forced onto one line or can wrap onto multiple lines

isValid

Boolean

readonly

Returns true if the object specifier resolves to valid objects.

justifyContent

FlexPosition

FlexPosition.FLEX_CENTER

FlexPosition.FLEX_END

FlexPosition.FLEX_START

FlexSpacing

FlexSpacing.FLEX_SPACE_AROUND

FlexSpacing.FLEX_SPACE_BETWEEN

FlexSpacing.FLEX_SPACE_EVENLY

read/write

Defines how the browser distributes space between and around content items along the main-axis. Can return: FlexPosition enumerator or FlexSpacing enumerator.

parent

ObjectStyle

readonly

The parent of the FlexLayoutAttributeOption (a ObjectStyle).

properties

Object

read/write

A property that allows setting of several properties at the same time.

Method Listing

EventListener addEventListener (eventType:String, handler:Varies File JavaScriptFunction, [captures:Boolean=Boolean])

Adds an event listener.

Parameter

Type

Description

eventType

String

The event type.

handler

File

JavaScriptFunction

The event handler. Can accept: File or JavaScript Function.

captures

Boolean

This parameter is obsolete. (Optional)

(default: false)

FlexLayoutAttributeOption getElements ()

Resolves the object specifier, creating an array of object references.

Boolean removeEventListener (eventType:String, handler:Varies File JavaScriptFunction, [captures:Boolean=Boolean])

Removes the event listener.

Parameter

Type

Description

eventType

String

The registered event type.

handler

File

JavaScriptFunction

The registered event handler. Can accept: File or JavaScript Function.

captures

Boolean

This parameter is obsolete. (Optional)

(default: false)

String toSource ()

Generates a string which, if executed, will return the FlexLayoutAttributeOption.

String toSpecifier ()

Retrieves the object specifier.

Object of

ObjectStyle.flexLayoutAttributeOptions

Event.parent

EventListener.parent

MutationEvent.parent

Return

FlexLayoutAttributeOption.getElements()