ResetIndentUsingOffset
class
The list item block indentation behavior that resets offset-based indentation toward zero.
Unlike IndentUsingOffset, this behavior is enabled only when the current indentation value can be moved toward zero:
- for forward direction only when the current offset is negative,
- for backward direction only when the current offset is positive.
Properties
isForward : booleaninheritedmodule:indent/indentcommandbehavior/resetindentusingoffset~ResetIndentUsingOffset#isForwardThe direction of indentation.
offset : numberinheritedmodule:indent/indentcommandbehavior/resetindentusingoffset~ResetIndentUsingOffset#offsetThe offset of the next indentation step.
unit : stringinheritedmodule:indent/indentcommandbehavior/resetindentusingoffset~ResetIndentUsingOffset#unitIndentation unit.
Methods
constructor( config = { config.direction, config.offset, config.unit } )inheritedmodule:indent/indentcommandbehavior/resetindentusingoffset~ResetIndentUsingOffset#constructorCreates an instance of the indentation behavior.
Parameters
config : object- Properties
config.direction : 'forward' | 'backward'The direction of indentation.
config.offset : numberThe offset of the next indentation step.
config.unit : stringIndentation unit.
checkEnabled( indentAttributeValue ) → booleanmodule:indent/indentcommandbehavior/resetindentusingoffset~ResetIndentUsingOffset#checkEnabledgetNextIndent( indentAttributeValue ) → string | undefinedinheritedmodule:indent/indentcommandbehavior/resetindentusingoffset~ResetIndentUsingOffset#getNextIndent