Module

utils/dom/tounit

@ckeditor/ckeditor5-utils/src/dom/tounit

module

Filtering

Functions

  • helper( value ) → String

    A function, which adds a pre–defined trailing unit to the passed value.

    Parameters

    value : *

    A value to be given the unit.

    Returns

    String

    A value with the trailing unit.

  • toUnit( unit ) → helper

    static

    Returns a helper function, which adds a desired trailing unit to the passed value.

    Parameters

    unit : String

    An unit like "px" or "em".

    Returns

    helper