AttributeStrategy (list/listproperties)
@ckeditor/ckeditor5-list/src/listproperties/listpropertiesediting
Strategy for dealing with listItem
attributes supported by this plugin.
Filtering
Properties
-
attributeName : keyof ListItemAttributesMap
module:list/listproperties/listpropertiesediting~AttributeStrategy#attributeName
The model attribute name.
-
defaultValue : unknown
module:list/listproperties/listpropertiesediting~AttributeStrategy#defaultValue
The model attribute default value.
-
viewConsumables : Consumables
module:list/listproperties/listpropertiesediting~AttributeStrategy#viewConsumables
The view consumable as expected by
ViewConsumable
.
Methods
-
addCommand( editor ) → void
module:list/listproperties/listpropertiesediting~AttributeStrategy#addCommand
-
appliesToListItem( element ) → boolean
module:list/listproperties/listpropertiesediting~AttributeStrategy#appliesToListItem
Verifies whether the strategy is applicable for the specified model element.
Parameters
element : Item
Returns
boolean
-
getAttributeOnUpcast( element ) → unknown
module:list/listproperties/listpropertiesediting~AttributeStrategy#getAttributeOnUpcast
-
hasValidAttribute( element ) → boolean
module:list/listproperties/listpropertiesediting~AttributeStrategy#hasValidAttribute
-
setAttributeOnDowncast( writer, value, element ) → void
module:list/listproperties/listpropertiesediting~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.
With the release of version 42.0.0, we have rewritten much of our documentation to reflect the new import paths and features. We appreciate your feedback to help us ensure its accuracy and completeness.