Automattic / Automattic/remote-data-blocks

Add specific UI elements for some common input variables data types

Open
#640 0 comments 1 reaction 0 assignees View on GitHub
enhancement
Dominant language
PHP
Stars
84
Forks
14
Avg merge
14h 35m
Merged PRs (30d)
4

Description

For every input variable you add to a block, you get the same generic text input field in the UI.

In the future, it would be great to make the UI component to match the best UI for the specific data type. Integers, dates, etc. It would be also awesome to have hooks to allow plugin developers to use their own components to handle the fields.

But for starters, it would be great if we could add two basic field types:

* bool - render a checkbox or toggle
* enum - render a select

At Newspack, we have some usecases that could really use these. For example, in a list block, the API allow you to choose how to order the list. We can do this, but the user needs to know what are the supported fields, and type them perfectly. This could be easily acheived with an enum and a selectbox.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.