list/listproperties/utils/style

Api-module icon module

Functions

  • Chevron-right icon

    getAllSupportedStyleTypes() → Array<string>
    internal

    Gets all the style types supported by given list type.

    Returns

    Array<string>
  • Chevron-right icon

    getListStyleTypeFromTypeAttribute( value ) → null | string
    internal

    Converts type attribute of <ul> or <ol> elements to list-style-type equivalent.

    Parameters

    value : string

    Returns

    null | string
  • Chevron-right icon

    getListTypeFromListStyleType( listStyleType ) → null | 'numbered' | 'bulleted'
    internal

    Checks whether the given list-style-type is supported by numbered or bulleted list.

    Parameters

    listStyleType : string

    Returns

    null | 'numbered' | 'bulleted'
  • Chevron-right icon

    getTypeAttributeFromListStyleType( value ) → null | string
    internal

    Converts list-style-type style to type attribute of <ul> or <ol> elements.

    Parameters

    value : string

    Returns

    null | string
  • Chevron-right icon

    normalizeListStyle( listStyle ) → string
    internal

    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.