AttributeStrategy (list/documentlistproperties)
@ckeditor/ckeditor5-list/src/documentlistproperties/documentlistpropertiesediting
interface
Strategy for dealing with listItem
attributes supported by this plugin.
Filtering
Properties
-
attributeName : keyof ListItemAttributesMap
module:list/documentlistproperties/documentlistpropertiesediting~AttributeStrategy#attributeName
The model attribute name.
-
defaultValue : unknown
module:list/documentlistproperties/documentlistpropertiesediting~AttributeStrategy#defaultValue
The model attribute default value.
-
viewConsumables : Consumables
module:list/documentlistproperties/documentlistpropertiesediting~AttributeStrategy#viewConsumables
The view consumable as expected by
ViewConsumable
.
Methods
-
addCommand( editor ) → void
module:list/documentlistproperties/documentlistpropertiesediting~AttributeStrategy#addCommand
-
appliesToListItem( element ) → boolean
module:list/documentlistproperties/documentlistpropertiesediting~AttributeStrategy#appliesToListItem
Verifies whether the strategy is applicable for the specified model element.
Parameters
element : Item
Returns
boolean
-
getAttributeOnUpcast( element ) → unknown
module:list/documentlistproperties/documentlistpropertiesediting~AttributeStrategy#getAttributeOnUpcast
-
hasValidAttribute( element ) → boolean
module:list/documentlistproperties/documentlistpropertiesediting~AttributeStrategy#hasValidAttribute
-
setAttributeOnDowncast( writer, value, element ) → void
module:list/documentlistproperties/documentlistpropertiesediting~AttributeStrategy#setAttributeOnDowncast
Sets the property on the view element.
Parameters
writer : DowncastWriter
value : unknown
element : Element
Returns
void
Every day, we work hard to keep our documentation complete. Have you spotted outdated information? Is something missing? Please report it via our issue tracker.