Last updated 7 months ago
Was this helpful?
You can bind your to input elements within your using .
// wires/MyComponent.cfc component extends="cbwire.models.Component" { // Data properties data = { "name" : "" }; }
<!--- ./wires/mycomponent.cfm ---> <cfoutput> <div> <form> <input wire:model.live="name" type="text"> Name updated at #now()# </form> </div> </cfoutput>
See the page for complete documentation.
When are updated using wire:model, CBWIRE has several methods you can hook into such as onUpdate and onHyrdate ( See ).