ListItemMarkerDowncastStrategy
interface
The custom marker downcast strategy.
Properties
attributeName : stringmodule:list/list/listediting~ListItemMarkerDowncastStrategy#attributeNameThe model attribute name.
consume : boolean | undefinedmodule:list/list/listediting~ListItemMarkerDowncastStrategy#consumeWhether the attribute should be consumed or this strategy is a side effect.
Defaults to
truescope : 'itemMarker'module:list/list/listediting~ListItemMarkerDowncastStrategy#scopeThe scope of the downcast.
Methods
canInjectMarkerIntoElement( modelElement ) → booleanmodule:list/list/listediting~ListItemMarkerDowncastStrategy#canInjectMarkerIntoElementShould return true if the custom marker can be injected into a given list block. Otherwise, custom marker view element is always injected before the block element.
Parameters
modelElement : ModelElement
Returns
boolean
canWrapElement( modelElement ) → booleanmodule:list/list/listediting~ListItemMarkerDowncastStrategy#canWrapElementShould return true if the given list block can be wrapped with the wrapper created by
createWrapperElement()or only the marker element should be wrapped.Parameters
modelElement : ModelElement
Returns
boolean
createElement( writer, modelElement, __namedParameters = { [__namedParameters.dataPipeline] } ) → ViewElement | nullmodule:list/list/listediting~ListItemMarkerDowncastStrategy#createElementCreates a view element for a custom item marker.
Parameters
writer : ViewDowncastWritermodelElement : ModelElement__namedParameters : object- Properties
[ __namedParameters.dataPipeline ] : boolean
Returns
ViewElement | null
createWrapperElement( writer, modelElement, __namedParameters = { [__namedParameters.dataPipeline] } ) → ViewAttributeElementmodule:list/list/listediting~ListItemMarkerDowncastStrategy#createWrapperElementCreates an ViewAttributeElement to be used for wrapping a first block of a list item.
Parameters
writer : ViewDowncastWritermodelElement : ModelElement__namedParameters : object- Properties
[ __namedParameters.dataPipeline ] : boolean
Returns