Sign up (with export icon)

IndentUsingClasses

Api-class icon class

The block indentation behavior that uses classes to set indentation.

Properties

Methods

  • Chevron-right icon

    constructor( config = { config.classes, config.direction } )

    Creates an instance of the indentation behavior.

    Parameters

    config : object
    Properties
    config.classes : Array<string>

    A list of classes used for indentation.

    config.direction : 'forward' | 'backward'

    The direction of indentation.

  • Chevron-right icon

    checkEnabled( indentAttributeValue ) → boolean

    Parameters

    indentAttributeValue : string

    Returns

    boolean
  • Chevron-right icon

    getNextIndent( indentAttributeValue ) → undefined | string

    Parameters

    indentAttributeValue : string

    Returns

    undefined | string