Sign up (with export icon)

BadgeConfig

Api-interface icon interface

The badge configuration options.

Properties

  • Chevron-right icon

    The horizontal distance between the side of the editing root and the nearest side of the badge.

    Defaults to 5

  • Chevron-right icon

    position : 'border' | 'inside'

    The position of the badge.

    • When 'inside', the badge will be displayed within the boundaries of the editing area.
    • When 'border', the basge will be displayed over the bottom border of the editing area.

    Defaults to 'border'

  • Chevron-right icon

    side : 'right' | 'left'

    Allows choosing the side of the editing area where the badge will be displayed.

    Note: If config.language is set to an RTL (right-to-left) language, the side switches to 'left' by default.

    Defaults to 'right'

  • Chevron-right icon

    verticalOffset : number

    The vertical distance the badge can be moved away from its default position.

    Note: If position is 'border', the offset is measured from the (vertical) center of the badge.

    Defaults to 5