grapesjs icon indicating copy to clipboard operation
grapesjs copied to clipboard

How to listen for changes to the selection box in Traits

Open ionic666 opened this issue 8 years ago • 3 comments

1 2018-09-19_102259 3 i just want to listen for changes to the selection box,but i can't enter the function updateType

ionic666 avatar Sep 19 '18 02:09 ionic666

@ionic666 I guess you will need to create a custom trait: https://github.com/artf/grapesjs/wiki/Traits#define-new-trait-type

JulyanoF avatar Sep 19 '18 15:09 JulyanoF

not having changeProp: 1, it will be a simple attribute, so you have listen to: change:attributes:data-sensor

artf avatar Sep 19 '18 23:09 artf

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

lock[bot] avatar Sep 19 '19 23:09 lock[bot]