list/listproperties/utils/style
module
Functions
-
getAllSupportedStyleTypes() → Array<string>
internalmodule:list/listproperties/utils/style~getAllSupportedStyleTypes
Gets all the style types supported by given list type.
Returns
Array<string>
-
getListStyleTypeFromTypeAttribute( value ) → null | string
internalmodule:list/listproperties/utils/style~getListStyleTypeFromTypeAttribute
Converts
type
attribute of<ul>
or<ol>
elements tolist-style-type
equivalent.Parameters
value : string
Returns
null | string
-
getListTypeFromListStyleType( listStyleType ) → null | 'numbered' | 'bulleted'
internalmodule:list/listproperties/utils/style~getListTypeFromListStyleType
Checks whether the given list-style-type is supported by numbered or bulleted list.
Parameters
listStyleType : string
Returns
null | 'numbered' | 'bulleted'
-
getTypeAttributeFromListStyleType( value ) → null | string
internalmodule:list/listproperties/utils/style~getTypeAttributeFromListStyleType
Converts
list-style-type
style totype
attribute of<ul>
or<ol>
elements.Parameters
value : string
Returns
null | string
-
normalizeListStyle( listStyle ) → string
internalmodule:list/listproperties/utils/style~normalizeListStyle
Normalizes list style by converting aliases to their canonical form.
Parameters
listStyle : string
The list style value to normalize.
Returns
string
The canonical form of the list style.