Description
When creating an instance of Integer:
- Go to https://www.wikifunctions.org/wiki/Special:CreateObject?zid=Z16683
- Click the expand toggle
The user has to fill out "sign", which is an enumeration.
This falls back into ZReference component, which uses CdxLookup set to a restricted type.
When the user knows what they're searching for, what term to use and there are labels in their language, they can easily type and select "positive" or "negative".
But if they don't have this knowledge, the selector will not display the available options, which will be a problem.
We should use a different component when selecting enums. Possibilities are:
- CdxSelect; works best when we have around 5 or 6 options
- CdxCombobox; might work best when a predefined list is longish. it gives people the ability of both typing/searching or opening the menu to click to select something from the defined list.
Also:
- Contemplate the possibility of using both, depending on the number of available options
- If we use CdxSelect, use visibleItemLimit property of the menuConfig to display a scrollable menu
Desired behavior/Acceptance criteria
- Users can see available options to choose from when selecting an item of an Enum type
Completion checklist
- Before closing this task, review one by one the checklist available here: https://www.mediawiki.org/wiki/Abstract_Wikipedia_team/Definition_of_Done#Front-end_Task/Bug_Completion_Checklist