antirez / antirez/protoview

Ability to create a field with an array of strings

Open
#6 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
594
Forks
24
PR merge metrics
No merged PRs in 30d

Description

We currently have the ability to add a str field and we have a nice keyboard where we can edit it.
However, sometimes the number of possibilities may be limited and it would be nice to be able to choose one from a pre-prepared list.
This can also be useful for describing other types (e.g. button lock/unlock) instead of using byte or int.

Pseudocode for better visualization:

```c
fieldset_add_str_arr(info->fieldset,"Button",{"Lock", "Unlock"},2,0);
```

It would work so that instead of editing on the keyboard, we would switch between strings from the list using the arrows.

I am convinced that you know what I mean.
Let me know what do you think about it 😉

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.