configure As Block
Type: Function
How to get configureAsBlock?
JavaScript
import configureAsBlock from 'fontoxml-families/src/configureAsBlock.js'
Blocks can only contain inline content and are as such an end point of the vertical flow of a document.
Blocks are recognizable by their textual content and whitelines. Optionally, the text can be formatted using a number of visualization options.
Blocks can be split or created by pressing Enter.
Paragraphs are the most obvious example of this family.
The following visualization options are visualized by the block family:
-
baseline
-
case
-
endDelimiter
-
fontStack
-
isMonospaced
-
lineThroughStyle
-
overlineStyle
-
slant
-
startDelimiter
-
textAlign
-
underlineStyle
-
weight
The following widget areas are available:
-
blockHeaderLeft
-
blockHeaderRight
-
blockBefore
-
blockAfter
-
blockFooter
-
blockOutsideBefore
-
blockOutsideAfter
Arguments
sx
Module (Required)
Type: SxModule
selector
(Required)
Type: XPathTest
markup
Label (Required)
Type: String
options
(Required)
Type: CvkOptions