IndentUsingOffset
class
The block indentation behavior that uses offsets to set indentation.
Properties
isForward: booleanmodule:indent/indentcommandbehavior/indentusingoffset~IndentUsingOffset#isForwardThe direction of indentation.
offset: numbermodule:indent/indentcommandbehavior/indentusingoffset~IndentUsingOffset#offsetThe offset of the next indentation step.
unit: stringmodule:indent/indentcommandbehavior/indentusingoffset~IndentUsingOffset#unitIndentation unit.
Methods
constructor( config = { config.direction, config.offset, config.unit } )module:indent/indentcommandbehavior/indentusingoffset~IndentUsingOffset#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/indentusingoffset~IndentUsingOffset#checkEnabledgetNextIndent( indentAttributeValue ) → string | undefinedmodule:indent/indentcommandbehavior/indentusingoffset~IndentUsingOffset#getNextIndent