Sign up (with export icon)

IndentUsingOffset

Api-class icon class

The block indentation behavior that uses offsets to set indentation.

Properties

Methods

  • Chevron-right icon

    constructor( config = { config.direction, config.offset, config.unit } )

    Creates an instance of the indentation behavior.

    Parameters

    config : object
    Properties
    config.direction : 'forward' | 'backward'

    The direction of indentation.

    config.offset : number

    The offset of the next indentation step.

    config.unit : string

    Indentation unit.

  • Chevron-right icon

    checkEnabled( indentAttributeValue ) → boolean

    Parameters

    indentAttributeValue : string

    Returns

    boolean
  • Chevron-right icon

    getNextIndent( indentAttributeValue ) → undefined | string

    Parameters

    indentAttributeValue : string

    Returns

    undefined | string