configure As Inline Object In Frame
Type: Function
How to get configureAsInlineObjectInFrame?
JavaScript
import configureAsInlineObjectInFrame from 'fontoxml-families/src/configureAsInlineObjectInFrame.js'
Use this family when inline objects can contain other elements which should be rendered.
Their semantic unity is visualised through a colored border and a background.
Just like block frames, inline frames can’t be split in two and adjacent ones will not merge. Inline frames can be deleted by pressing Backspace or Delete twice: the first press selects the frame to help the author understand what will happen.
Use this family for inline objects which can contain other elements which should be rendered. For example an desc element, which contains a description of the object.
Use the createInnerJsonMl callback to render the object to HTML. Note that unlike the configureAsInlineObject family, the result of this callback is rendered in an inline layout context to better match the layout of the children of the element.
A clickOperation may be used to execute something on click, like so the doubleClickOperation may be used to execute an operation on double-click
The following visualization options are visualized by this family:
-
backgroundColor
-
showWhen
The following widget areas are available:
-
inlineBefore
-
inlineAfter
This family has a number of additional options which affect how it behaves:
-
defaultTextContainer
-
createInnerJsonMl
Arguments
sx
Module (Required)
Type: SxModule
selector
(Required)
Type: XPathTest
markup
Label (Required)
Type: String
options
(Required)
Type: CvkOptions