Nutrient Web SDK
    Preparing search index...

    Class ActionAbstract

    Base action type from which all Actions inherit. You can not instantiate from this type.

    It is an Immutable.Record.

    Hierarchy

    Index

    Properties

    Actions can be chained by adding them to this immutable List.

    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

      • K extends "subActions"

      Parameters

      • key: K

      Returns this

      remove

    • Parameters

      Returns this

      removeIn

    • Parameters

      • other: unknown

      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

      • K extends "subActions"

      Parameters

      • key: K

      Returns {
          subActions?:
              | NutrientViewer.Immutable.List<NutrientViewer.Actions.Action>
              | null;
      }[K]

    • Parameters

      • keyPath: Iterable<unknown>
      • OptionalnotSetValue: unknown

      Returns unknown

    • Parameters

      • key: unknown

      Returns boolean

    • Parameters

      Returns this

    • Parameters

      Returns this

    • Parameters

      • merger: (previous?: unknown, next?: unknown, key?: string) => unknown
      • ...collections: (
            | Iterable<[string, unknown], any, any>
            | Partial<
                {
                    subActions?: | NutrientViewer.Immutable.List<
                        NutrientViewer.Actions.Action,
                    >
                    | null;
                },
            >
        )[]

      Returns this

    • Parameters

      Returns this

    • Parameters

      • merger: (previous?: unknown, next?: unknown, key?: string) => unknown
      • ...collections: (
            | Iterable<[string, unknown], any, any>
            | Partial<
                {
                    subActions?: | NutrientViewer.Immutable.List<
                        NutrientViewer.Actions.Action,
                    >
                    | null;
                },
            >
        )[]

      Returns this

    • Parameters

      Returns this

    • Parameters

      • keyPath: Iterable<unknown>
      • value: unknown

      Returns this

    • Returns Keyed<string, unknown>

    • Parameters

      • keyPath: Iterable<unknown>
      • notSetValue: unknown
      • updater: (value: unknown) => unknown

      Returns this

    • Parameters

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

      Returns this

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

      Parameters

      • mutator: (mutable: this) => unknown

      Returns this

      Map#withMutations