createNumberingWidget

Type: Function

How to get createNumberingWidget?

JavaScript

import createNumberingWidget from 'fontoxml-families/src/createNumberingWidget.js'

This widget is used to display ascending numbers on consecutive elements. This can, for example, be used for numbered list-like structures.

Valid numbering styles are:

  • decimal

  • lowerAlpha

  • upperAlpha

  • lowerGreek

  • upperGreek

  • lowerRoman

  • upperRoman

By default, the numbering is rest per document, but the containerSelectorOrNodeSpec option can set a different scope.

Arguments

  1. itemSelector

    (Required)

    Type: XPathTest

    An XPathTest returning true for the elements which should be numbered.

  2. options

    (Optional)

    Type: Object

    Properties

Returns

Type: Widget