Documentation: Need examples of using and setting attributes with controls within PluginDocumentSettingPanel #19747
Labels
[Feature] Extensibility
The ability to extend blocks or the editing experience
[Type] Developer Documentation
Documentation for developers
There is an urgent need of examples on using controls when registering a
PluginDocumentSettingPanel
. I know this slot is still new but developers like me are already wanting to use it instead of old fashion Meta Box.Creating the panel and adding the controls is fine but getting the attributes to set is what I am strugglering to get working. I thought it would be the same or similar to extending the
InspectorControls
for a block or many blocks, but the results are not a match and does not always allow editing ability specially with a number input.Here is my code sample. https://gist.github.com/seb86/2e2c45c644df41fd2b09a07e5169c177
You will see that I am saving the values as meta data which I have already added support for the post type
wp_block
and works when saving, but setting the selection so the user knows a change or selection has been made does not.If anyone can provide a little help as to what might be missing I would greatly appreciate it.
Thank you.
The text was updated successfully, but these errors were encountered: