If true, the controller value will be updated automatically if target object is modified.
Carefull: heavy use may reduce performance
group.add('someProperty', target, { listen: true })
If true, the controller will not be editable
Display name of a controller, defaultly equal to property.
group.add('someProperty', target, { name: 'Custom display name' })
property controlled in the target object
source object in which the property key is defined
Manually update controller value in the form if target has changed
Delete the controller
Add a controller in the same Group of current controller
Generated using TypeDoc
BaseControlleris the common class used by all others controllers.How to use
Deal with events
Three kinds of events are emitted by all the controllers
input: Trigger when aninputevent is trigger by anHTMLInputElementchange: Trigger when anchangeevent is trigger by anHTMLInputElementupdate: Trigger when a modification is made on the target property. It's the most common way to usedata-guiListen to event
Method one
Method two (using
web-componentandCustomEvent)Remove listener
You can use either
offorremoveEventListenerto do so.