Back to Grapesjs

Property Number

docs/api/property_number.md

0.22.161.5 KB
Original Source
<!-- Generated by documentation.js. Update this documentation by updating the source code. -->

PropertyNumber

Extends Property

Properties

getUnits

Get property units.

Returns Array<String>

getUnit

Get property unit value.

Returns String

getMin

Get min value.

Returns Number

getMax

Get max value.

Returns Number

getStep

Get step value.

Returns Number

upUnit

Update property unit value. The change is also propagated to the selected targets.

Parameters

  • unit String New unit value

  • opts Object Options (optional, default {})

    • opts.noTarget Boolean If true the change won't be propagated to selected targets. (optional, default false)

Returns String