Hierarchy
Constructors
Parameters
Properties
action
The action that will be triggered when the outline element is either clicked or tapped.
Please refer to NutrientViewer.Actions for an in-depth look at PDF actions.
children
Each outline element can have nested outline elements. The visibility of which is controlled by OutlineElement.isExpanded.
See Also
color
The text color of the outline element title.
When this value is null the color is the Nutrient Web SDK's UI's default color
which can be configured via NutrientViewer's public CSS API.
Default Value
nullisExpanded
Whether the outline element is expanded and shows its child elements.
Default Value
falseImmutable Record API
31
"[iterator]"(): IterableIterator<
[
keyof { … },
| string
| boolean
| NutrientViewer.Color
| NutrientViewer.Actions.Action
| NutrientViewer.Immutable.List<NutrientViewer.OutlineElement>
| null,
],
>Returns
IterableIterator<
[
keyof { … },
| string
| boolean
| NutrientViewer.Color
| NutrientViewer.Actions.Action
| NutrientViewer.Immutable.List<NutrientViewer.OutlineElement>
| null
]
>
Returns
thisSee Also
Map#asImmutable
Returns
thisSee Also
Map#asMutable
Returns a new instance of this Record type with all values set to their default values.
Returns
this
delete<K extends keyof { … }>(key: K): this
Returns a new instance of this Record type with the value for the specific key set to its default value.
Parameters
otherunknownReturns
boolean
Returns the value associated with the provided key, which may be the default value defined when creating the Record factory function.
If the requested key is not defined by this Record type, then notSetValue will be returned if provided. Note that this scenario would produce an error when using Flow or TypeScript.
Returns
number
Parameters
keyPathIterable<unknown>...collectionsunknown[]Returns
this
Parameters
keyPathIterable<unknown>...collectionsunknown[]Returns
this
remove<K extends keyof { … }>(key: K): this
Parameters
keyPathIterable<unknown>valueunknownReturns
this
Deeply converts this Record to equivalent native JavaScript Object.
Note: This method may not be overridden. Objects with custom serialization to plain JS may override toJSON() instead.
Returns
{ … }
action: unknown
The action that will be triggered when the outline element is either clicked or tapped.
Please refer to NutrientViewer.Actions for an in-depth look at PDF actions.
children: unknown
Each outline element can have nested outline elements. The visibility of which is controlled by OutlineElement.isExpanded.
See Also
color: unknown
The text color of the outline element title. When this value is
nullthe color is the Nutrient Web SDK's UI's default color which can be configured via NutrientViewer's public CSS API.Default Value
nullisBold: boolean
Whether the outline element title is bold.
Default Value
falseisExpanded: boolean
Whether the outline element is expanded and shows its child elements.
Default Value
falseisItalic: boolean
Whether the outline element title is italic.
Default Value
falsetitle: string
The outline element title, must be human readable.
Shallowly converts this Record to equivalent native JavaScript Object.
Returns
{ … }
action: NutrientViewer.Actions.Action | null
The action that will be triggered when the outline element is either clicked or tapped.
Please refer to NutrientViewer.Actions for an in-depth look at PDF actions.
children: NutrientViewer.Immutable.List<NutrientViewer.OutlineElement>
Each outline element can have nested outline elements. The visibility of which is controlled by OutlineElement.isExpanded.
See Also
color: NutrientViewer.Color | null
The text color of the outline element title. When this value is
nullthe color is the Nutrient Web SDK's UI's default color which can be configured via NutrientViewer's public CSS API.Default Value
nullisBold: boolean
Whether the outline element title is bold.
Default Value
falseisExpanded: boolean
Whether the outline element is expanded and shows its child elements.
Default Value
falseisItalic: boolean
Whether the outline element title is italic.
Default Value
falsetitle: string
The outline element title, must be human readable.
Shallowly converts this Record to equivalent JavaScript Object.
Returns
{ … }
action: NutrientViewer.Actions.Action | null
The action that will be triggered when the outline element is either clicked or tapped.
Please refer to NutrientViewer.Actions for an in-depth look at PDF actions.
children: NutrientViewer.Immutable.List<NutrientViewer.OutlineElement>
Each outline element can have nested outline elements. The visibility of which is controlled by OutlineElement.isExpanded.
See Also
color: NutrientViewer.Color | null
The text color of the outline element title. When this value is
nullthe color is the Nutrient Web SDK's UI's default color which can be configured via NutrientViewer's public CSS API.Default Value
nullisBold: boolean
Whether the outline element title is bold.
Default Value
falseisExpanded: boolean
Whether the outline element is expanded and shows its child elements.
Default Value
falseisItalic: boolean
Whether the outline element title is italic.
Default Value
falsetitle: string
The outline element title, must be human readable.
toSeq(): Keyed<
keyof { … },
| string
| boolean
| NutrientViewer.Color
| NutrientViewer.Actions.Action
| NutrientViewer.Immutable.List<NutrientViewer.OutlineElement>
| null,
>Returns
Keyed<
keyof { … },
| string
| boolean
| NutrientViewer.Color
| NutrientViewer.Actions.Action
| NutrientViewer.Immutable.List<NutrientViewer.OutlineElement>
| null
>
Parameters
keyPathIterable<unknown>updater(value: unknown) => unknownReturns
this
Returns
booleanSee Also
Map#wasAltered
Note: Not all methods can be used on a mutable collection or within
withMutations! Onlysetmay be used mutatively.Parameters
mutator(mutable: this) => unknownReturns
thisSee Also
Map#withMutations
This record is used to represent document outline elements. These allow the user to navigate interactively from one part of the document to another.
Outline elements can be nested in a tree-like structure where elements are collapsible/expandable to hide/reveal their subtrees.