Free and Open source Web Builder Framework. Next generation tool for building templates without coding
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

1.4 KiB

getId

Get layer id.

Returns String

getIndex

Get layer index.

Returns Number

getValues

Get layer values.

Parameters

  • opts Object Options (optional, default {})

    • opts.camelCase Boolean? Return property names in camelCase.

Returns Object

getLabel

Get layer label.

Returns String

isSelected

Check if the layer is selected.

Returns Boolean

select

Select the layer.

remove

Remove the layer.

move

Move layer to a new index.

Parameters

getStylePreview

Get style object for the preview.

Parameters

  • opts Object Options. Same of PropertyStack.getStyleFromLayer (optional, default {})

Returns Object Style object

hasPreview

Check if the property has the preview enabled for this layer.

Returns Boolean