Interface AttributeEditor

Editor for attributes.

Hierarchy

  • AttributeEditor

Methods

  • Applies the attribute operations.

    Parameters

    • Optional success: (() => void)

      Success callback.

        • (): void
        • Returns void

    • Optional error: ((err: string) => void)

      Error callback.

        • (err: string): void
        • Parameters

          • err: string

          Returns void

    Returns void

  • Removes a JSON attribute.

    Returns

    The attribute editor instance.

    Parameters

    • name: string

      The name of the attribute to remove.

    • instanceId: string

      The instance ID.

    Returns AttributeEditor

  • Adds an attribute.

    Returns

    The attribute editor instance.

    Parameters

    • name: string

      The attribute name.

    • value: string | number | boolean | Date

      The attribute value.

    Returns AttributeEditor

  • Adds a JSON attribute.

    Returns

    The attribute editor instance.

    Parameters

    • name: string

      The attribute name.

    • instanceId: string

      The instance ID.

    • json: Record<string, any>

      The json value. Must not contain exp as top level key.

    • Optional expiration: Date

    Returns AttributeEditor

Generated using TypeDoc