InDesign2026
API 21.5.1.73
Object

FlexLayoutAttributeOption

Options for applying flex layout attributes to flex object.

Preference FlexLayoutAttributeOption
Hierarchy

ObjectStyle

FlexLayoutAttributeOption

Properties

NameType AccessDescription
FlexPosition | FlexEnum
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.
FlexPosition | FlexEnum
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<EventListener> readonly A collection of event listeners.
Events<Event> readonly A collection of events.
FlexDirection
read/write The direction of the flex container
Number | String unit read/write The column gap between flex items
Number | String unit read/write The row gap between flex items
FlexWidthHeightMode | FlexEnum
read/write The height behavior of the flex container. Can return: FlexWidthHeightMode enumerator or FlexEnum enumerator.
Number | String unit read/write The bottom padding of the flex container
Number | String unit read/write The left padding of the flex container
Number | String unit read/write The right padding of the flex container
Number | String unit read/write The top padding of the flex container
FlexWidthHeightMode | FlexEnum
read/write The width behavior of the flex container. Can return: FlexWidthHeightMode enumerator or FlexEnum enumerator.
FlexWrap
read/write Whether flex items are forced onto one line or can wrap onto multiple lines
Boolean readonly Returns true if the object specifier resolves to valid objects.
FlexPosition | FlexSpacing
read/write Defines how the browser distributes space between and around content items along the main-axis. Can return: FlexPosition enumerator or FlexSpacing enumerator.
ObjectStyle readonly The parent of the FlexLayoutAttributeOption (a ObjectStyle).
Object read/write A property that allows setting of several properties at the same time.

Methods

EventListener

Adds an event listener.

eventType String The event type.
handler File | JavaScriptFunction The event handler. Can accept: File or JavaScript Function.
captures? Boolean This parameter is obsolete.
Boolean

Removes the event listener.

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.
String

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

String

Retrieves the object specifier.

Object of 4

Properties elsewhere that hold a FlexLayoutAttributeOption.

Return 1

Methods that return a FlexLayoutAttributeOption.