Gutenberg: BAPI for inspector / advanced settings

Created on 5 May 2017  路  4Comments  路  Source: WordPress/gutenberg

I think it could maybe be an optional inspector() function in registerBlock that leverages Fill behind the scenes. I think we should not be prescriptive about what you can render in the sidebar, but provide basic form components eventually.

Examples for this use case:

  • Advanced embed settings (youtube settings, tweet settings, etc).
  • Query-like controls for blocks like "latest-posts".
General Interface [Feature] Block API [Type] Task

Most helpful comment

Here are mockups of how the inspector could work.

When no block is selected, you see the normal sidebar:

image

As soon as you select a block, the sidebar shows the inspector:

image inspector

To get post settings back, just click anywhere to deselect a block. Or you can click the "Post" breadcrumb in the sidebar. Clicking the breadcrumb would also deselect any selected blocks.

All 4 comments

Somewhat related to #609.

Here are mockups of how the inspector could work.

When no block is selected, you see the normal sidebar:

image

As soon as you select a block, the sidebar shows the inspector:

image inspector

To get post settings back, just click anywhere to deselect a block. Or you can click the "Post" breadcrumb in the sidebar. Clicking the breadcrumb would also deselect any selected blocks.

Also possibly related, #352

See also #952

Was this page helpful?
0 / 5 - 0 ratings

Related issues

davidsword picture davidsword  路  3Comments

nylen picture nylen  路  3Comments

maddisondesigns picture maddisondesigns  路  3Comments

wpalchemist picture wpalchemist  路  3Comments

moorscode picture moorscode  路  3Comments