$widget
The $widget
namespace contains functionality for working with your Blocks widget's API from within the widget code. Learn more.
Guides
Additional information about this section
Properties
Store values associated with an object
- props
Sets or gets the widget's properties.
Functions
Perform actions on an object
- fireEvent( )
Fires an event that is defined in the Widget API.
- onPropsChanged( )
Adds an event handler that runs when the value of a widget property is changed.