IndentUsingOffset
class
The block indentation behavior that uses offsets to set indentation.
Properties
-
isForward : boolean
module:indent/indentcommandbehavior/indentusingoffset~IndentUsingOffset#isForward
The direction of indentation.
-
offset : number
module:indent/indentcommandbehavior/indentusingoffset~IndentUsingOffset#offset
The offset of the next indentation step.
-
unit : string
module:indent/indentcommandbehavior/indentusingoffset~IndentUsingOffset#unit
Indentation unit.
Methods
-
constructor( config = { config.direction, config.offset, config.unit } )
module:indent/indentcommandbehavior/indentusingoffset~IndentUsingOffset#constructor
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.
-
checkEnabled( indentAttributeValue ) → boolean
module:indent/indentcommandbehavior/indentusingoffset~IndentUsingOffset#checkEnabled
-
getNextIndent( indentAttributeValue ) → undefined | string
module:indent/indentcommandbehavior/indentusingoffset~IndentUsingOffset#getNextIndent