Expand documentation to include InspectorControls code examples #4478
Closed
Description
I'm working on a demo ES5 Countdown Timer block at the moment. It needs two control elements: label
and countdown_date
.
Because the latter is a computed value, I want to create a TextControl (or similar) to input the date. However, only BlockControls
are documented so I spent a fair amount of time in confusion until I realized there's an InspectorControls
API too. It would be nice to have this documented.
Activity