ListPropertiesStyleConfig
Properties
listStyleTypes : ListStyleTypesConfig | undefinedmodule:list/listconfig~ListPropertiesStyleConfig#listStyleTypesDefines which list styles should be available in the UI. Accepts a configuration object with numbered and bulleted styles.
{ list: { properties: { styles: { listStyleTypes: { numbered: [ 'decimal', 'lower-roman', 'upper-roman' ], bulleted: [ 'disc', 'circle' ] } } } } }Copy codeWhen the
listTypesconfiguration is set,listStyleTypeswill only take effect for the enabled list types. For example, with the following configuration:{ list: { properties: { styles: { listTypes: 'numbered', listStyleTypes: { numbered: [ 'decimal', 'lower-roman' ], bulleted: [ 'disc', 'circle' ] } } } } }Copy codeOnly the numbered list styles will be available in the UI, as the
listTypesproperty limits style selection to numbered lists only.Note: This configuration works only with list properties.
Defaults to
`{ numbered: [ 'decimal', 'decimal-leading-zero', 'lower-roman', 'upper-roman', 'lower-latin', 'upper-latin' ], bulleted: [ 'disc', 'circle', 'square' ] }`listTypes : ArrayOrItem<ListPropertiesStyleListType> | undefinedmodule:list/listconfig~ListPropertiesStyleConfig#listTypesEnable style feature for the given list type only.
{ list: { properties: { styles: { listTypes: 'numbered' } // ... } }, // ... }Copy codeNote: This configuration works only with list properties.
Defaults to
['bulleted','numbered']useAttribute : boolean | undefinedmodule:list/listconfig~ListPropertiesStyleConfig#useAttributeWhen set
true, the list style feature will use thetypeattribute of<ul>and<ol>elements instead of thelist-style-typestyle.{ list: { properties: { styles: { useAttribute: true }, // ... } }, // ... }Copy codeNote: Due to limitations of HTML, the "Decimal with leading zero" style is impossible to set using the
typeattribute.Note: This configuration works only with list properties.
Defaults to
false