bobbingwide / oik-blocks

WordPress 5.0 blocks for oik shortcodes
https://oik-plugins.com/oik-plugins/oik-blocks
GNU General Public License v3.0
1 stars 0 forks source link

Need a block editor control for a custom select list #37

Open bobbingwide opened 4 years ago

bobbingwide commented 4 years ago
Many of the shortcodes for which I'm creating block editor front ends have attributes which can either be chosen from a pre-defined list or can have custom values. e.g. Field Values
post_type can be any one of the post types that exist in the system, or a set or comma separated post types
orderby date / ID / title / parent / rand / menu_order or a combination
format a sequence of characters representing fields and the order in which they're displayed
fields a list of fields to display, one per column of a table

Requirements

Advanced requirements

Proposals seen elsewhere

Blocks

Nivo - I prototyped this with the theme field being a text input that was shared with a select list called t2. See #10 ? Shortcode block - With the shortcode text field and drop down list

Meetup Cheltenham

This subject was very recently discussed in #meetup-cheltenham UK WordPress Slack. A suggestion was

Windows print - Pages field

In Windows, when printing, the Pages field allows customised values.

image

bobbingwide commented 4 years ago

Ability to display icons and other non-text data in the "selection" part of the list

Gutenberg provides a CustomSelectControl which allows users to select an item from a single-option menu just like SelectControl, with the addition of being able to provide custom styles for each item in the menu. This means it does not use a native