# Property

# Properties

# getId

Get property id.

Returns String (opens new window)

# getType

Get the property type. The type of the property is defined on property creation and based on its value the proper Property class is assigned. The default type is base.

Returns String (opens new window)

# getName

Get name (the CSS property name).

Returns String (opens new window)

# getLabel

Get property label.

# Parameters

Returns String (opens new window)

# getValue

Get property value.

# Parameters

Returns String (opens new window)

# hasValue

Check if the property has value.

# Parameters

Returns Boolean (opens new window)

# hasValueParent

Indicates if the current value is coming from a parent target (eg. another CSSRule).

Returns Boolean (opens new window)

# getStyle

Get the CSS style object of the property.

# Parameters

# Examples

// In case the property is `color` with a value of `red`.
console.log(property.getStyle());
// { color: 'red' };

Returns Object (opens new window)

# getDefaultValue

Get the default value.

Returns string (opens new window)

# upValue

Update the value. The change is also propagated to the selected targets (eg. CSS rule).

# Parameters

# isVisible

Check if the property is visible

Returns Boolean (opens new window)

# clear

Clear the value. The change is also propagated to the selected targets (eg. the css property is cleared).

# Parameters

# canClear

Indicates if the current value comes directly from the selected target and so can be cleared.

Returns Boolean (opens new window)

# getParent

If the current property is a sub-property, this will return the parent Property.

Returns ([Property] | null)

# isFull

Indicates if the property is full-width in UI.

Returns Boolean (opens new window)