Wires
Wires are reactive UI elements you create. They include a powerful feature-set provided by CBWIRE.
Wires primarily consist of the following:
Data Properties Reactive properties that we can easily change.
Computed Properties Properties that are computed every time our template is rendered.
Actions Methods that make state changes to our data properties.
Events and Listeners Listen for emitted events within Wires or client-side JavaScript.
Templates HTML to render our Wire.
Basic Example
Scaffolding
You can scaffold Wires quickly using the commandbox-cbwire module.
From our CommandBox shell, type:
Let's create a Counter Wire that we will use to list our favorite movies.
You can provide named arguments as well.
Last updated