Event Basics
Last updated
Was this helpful?
Providers can raise data events by creating an instance of the wire.data.DataEvent class, specifying the name of the event and then calling the raise method.
new wire.data.DataEvent("myevent").raise();Consumers can listen for events by registering a listener as a function callback with the WireBootstrap Data Event Manager. Use the listen method on wire.data to create a new listener.
wire.data.listen().event("myevent").when((data) => {
...
});Methods are available on wire.data.DataEvent class for creating standard data events in the system.
The dataselectevent is used primarily by WireBootstrap components to let other components know when a user selects or changes data inside the component.
const dataevent = new wire.data.DataEvent().dataselect();The datawriteevent is used primarily by WireBootstrap components to let other components know a user has saved data to a data service.
Last updated
Was this helpful?
Was this helpful?
const dataevent = new wire.data.DataEvent().datawrite();