-
@lowdefy/modules-mongodb-plugins: ### Minor Changes
-
#138
254289dThanks @Saiby100! - Five selectors in the form-components library —selector,multiple_selector,button_selector,radio_selector,checkbox_selector— now take anenumvar as an alternative tooptions. An enum map (slug → { title, color, icon }) is converted to options for you: the title becomes the label, the slug is the stored value, the colour tints the selected value and the icon shows on amultiple_selectortag.optionswins when both are set, and an operator-valuedenum(_global: enums.x,_module.var: y) still resolves.tree_multiple_selectorstaysoptions-only: a flat enum map cannot express theprimaryKey/parentKeyhierarchy it exists for, and for flat choicesmultiple_selectorrenders enum colours and icons that the tree drops.On read-only surfaces, an enum-driven selector now shows the entry's title. The
DataDescriptionsblock reads the field'senummap off the form config and renders the matching entry'stitle, colour and icon instead of formatting the stored slug — so astatusofin-progresswith title "In progress" no longer displays as "In Progress". Overview action cards carry theenummap through, so they resolve too. Nothing else changes: anoptions-driven selector, an unknown value, and a field with noenumall keep their existing display.Breaking: the
enum_selectorcomponent is removed — it was aSelector-only special case of whatselector+enumnow does. Replacecomponent: enum_selectorwithcomponent: selectorand keep the sameenum:map. Two behaviour differences to expect: the label is no longer hardcoded toalign: right / span: 12(declarelabel_inline/label_spanif you relied on it), and the enum's colour now actually tints the selected value, which the old component's option shape never did.
Patch Changes
-
#138
b8f7213Thanks @Saiby100! - Acheckbox_selectorfield now uses theselectorrenderer on read-only surfaces, like every other selector. It was the one options-taking selector missing from theDataDescriptionscomponent hints, so its stored slugs fell through to the generic string renderer. That path already rendered them as tags, so the visible fix is enum resolution: an enum-backed checkbox list showed "Weekly" (the slug, title-cased) instead of the entry's title "Weekly review", and dropped the entry's colour and icon. -
@lowdefy/modules-mongodb-workflows: ### Minor Changes
-
#138
254289dThanks @Saiby100! - Five selectors in the form-components library —selector,multiple_selector,button_selector,radio_selector,checkbox_selector— now take anenumvar as an alternative tooptions. An enum map (slug → { title, color, icon }) is converted to options for you: the title becomes the label, the slug is the stored value, the colour tints the selected value and the icon shows on amultiple_selectortag.optionswins when both are set, and an operator-valuedenum(_global: enums.x,_module.var: y) still resolves.tree_multiple_selectorstaysoptions-only: a flat enum map cannot express theprimaryKey/parentKeyhierarchy it exists for, and for flat choicesmultiple_selectorrenders enum colours and icons that the tree drops.On read-only surfaces, an enum-driven selector now shows the entry's title. The
DataDescriptionsblock reads the field'senummap off the form config and renders the matching entry'stitle, colour and icon instead of formatting the stored slug — so astatusofin-progresswith title "In progress" no longer displays as "In Progress". Overview action cards carry theenummap through, so they resolve too. Nothing else changes: anoptions-driven selector, an unknown value, and a field with noenumall keep their existing display.Breaking: the
enum_selectorcomponent is removed — it was aSelector-only special case of whatselector+enumnow does. Replacecomponent: enum_selectorwithcomponent: selectorand keep the sameenum:map. Two behaviour differences to expect: the label is no longer hardcoded toalign: right / span: 12(declarelabel_inline/label_spanif you relied on it), and the enum's colour now actually tints the selected value, which the old component's option shape never did.