Editor for attributes.

Properties

onApply: (operations: AttributeOperation[]) => Promise<void>
operations: AttributeOperation[]

Methods

  • Removes a JSON attribute.

    Parameters

    • name: string

      The name of the attribute to remove.

    • instanceId: string

      The instance ID.

    Returns AttributeEditor

    The attribute editor instance.

  • Adds an attribute.

    Parameters

    • name: string

      The attribute name.

    • value: string | number | boolean | Date

      The attribute value.

    Returns AttributeEditor

    The attribute editor instance.

  • Adds a JSON attribute.

    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.

    • Optionalexpiration: Date

    Returns AttributeEditor

    The attribute editor instance.