Nutrient Web SDK
    Preparing search index...

    Class OutlineElement

    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.

    Hierarchy

    Index

    Constructors

    Properties

    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.

    Each outline element can have nested outline elements. The visibility of which is controlled by OutlineElement.isExpanded.

    color: null | NutrientViewer.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.

    null
    
    isBold: boolean

    Whether the outline element title is bold.

    false
    
    isExpanded: boolean

    Whether the outline element is expanded and shows its child elements.

    false
    
    isItalic: boolean

    Whether the outline element title is italic.

    false
    
    title: string

    The outline element title, must be human readable.

    Methods

    • Returns this

      Map#asImmutable

    • Returns this

      Map#asMutable

    • Returns a new instance of this Record type with all values set to their default values.

      Returns this

    • Returns a new instance of this Record type with the value for the specific key set to its default value.

      Type Parameters

      Parameters

      • key: K

      Returns this

      remove

    • Parameters

      Returns this

      removeIn

    • Parameters

      • other: any

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

      Type Parameters

      Parameters

      • key: K
      • OptionalnotSetValue: any

      Returns {
          action: null | NutrientViewer.Actions.Action;
          children: NutrientViewer.Immutable.List<NutrientViewer.OutlineElement>;
          color: null | NutrientViewer.Color;
          isBold: boolean;
          isExpanded: boolean;
          isItalic: boolean;
          title: string;
      }[K]

    • Type Parameters

      • T

      Parameters

      • key: string
      • notSetValue: T

      Returns T

    • Parameters

      Returns any

    • Parameters

      • key: string

      Returns key is
          | "action"
          | "color"
          | "title"
          | "isBold"
          | "isItalic"
          | "children"
          | "isExpanded"

    • Returns number

    • Parameters

      Returns boolean

    • Parameters

      Returns this

    • Parameters

      Returns this

    • Parameters

      • keyPath: Iterable<any>
      • ...collections: any[]

      Returns this

    • Parameters

      Returns this

    • Parameters

      • keyPath: Iterable<any>
      • ...collections: any[]

      Returns this

    • Parameters

      Returns this

    • Parameters

      Returns this

    • Parameters

      Returns 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: any;
          children: any;
          color: any;
          isBold: any;
          isExpanded: any;
          isItalic: any;
          title: any;
      }

      • action: any

        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: any

        Each outline element can have nested outline elements. The visibility of which is controlled by OutlineElement.isExpanded.

      • color: any

        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.

        null
        
      • isBold: any

        Whether the outline element title is bold.

        false
        
      • isExpanded: any

        Whether the outline element is expanded and shows its child elements.

        false
        
      • isItalic: any

        Whether the outline element title is italic.

        false
        
      • title: any

        The outline element title, must be human readable.

    • Parameters

      • keyPath: Iterable<any>
      • updater: (value: any) => any

      Returns this

    • Returns boolean

      Map#wasAltered

    • Note: Not all methods can be used on a mutable collection or within withMutations! Only set may be used mutatively.

      Parameters

      • mutator: (mutable: this) => any

      Returns this

      Map#withMutations