ListAttributeDowncastStrategy
interface
The attribute to attribute downcast strategy for UL, OL, LI elements.
Properties
attributeName : stringmodule:list/list/listediting~ListAttributeDowncastStrategy#attributeNameThe model attribute name.
consume : boolean | undefinedmodule:list/list/listediting~ListAttributeDowncastStrategy#consumeWhether the attribute should be consumed or this strategy is a side effect.
Defaults to
truescope : 'item' | 'list'module:list/list/listediting~ListAttributeDowncastStrategy#scopeThe scope of the downcast (whether it applies to LI or OL/UL).
Methods
setAttributeOnDowncast( writer, value, element, options, modelElement ) → voidmodule:list/list/listediting~ListAttributeDowncastStrategy#setAttributeOnDowncastSets the property on the view element.
Parameters
writer : ViewDowncastWritervalue : unknownelement : ViewElementoptions : Record<string, unknown>modelElement : ModelElement
Returns
void