list/listproperties/utils/style
module
Functions
getAllSupportedStyleTypes() → Array<string>internalmodule:list/listproperties/utils/style~getAllSupportedStyleTypesGets all the style types supported by given list type.
Returns
Array<string>
getListStyleTypeFromTypeAttribute( value ) → null | stringinternalmodule:list/listproperties/utils/style~getListStyleTypeFromTypeAttributeConverts
typeattribute of<ul>or<ol>elements tolist-style-typeequivalent.Parameters
value : string
Returns
null | string
getListTypeFromListStyleType( listStyleType ) → null | 'numbered' | 'bulleted'internalmodule:list/listproperties/utils/style~getListTypeFromListStyleTypeChecks whether the given list-style-type is supported by numbered or bulleted list.
Parameters
listStyleType : string
Returns
null | 'numbered' | 'bulleted'
getTypeAttributeFromListStyleType( value ) → null | stringinternalmodule:list/listproperties/utils/style~getTypeAttributeFromListStyleTypeConverts
list-style-typestyle totypeattribute of<ul>or<ol>elements.Parameters
value : string
Returns
null | string
normalizeListStyle( listStyle ) → stringinternalmodule:list/listproperties/utils/style~normalizeListStyleNormalizes list style by converting aliases to their canonical form.
Parameters
listStyle : stringThe list style value to normalize.
Returns
stringThe canonical form of the list style.