listview selected state - Mendix Forum

listview selected state

4

currently there are 2 ways to give listview selected states.

  1. add a listen too, this adds the selected class to the <li> element
  2. create a MF/NF that toggles a selected bolean in the object, and with dynamic classes add a “selected” element to the element within the listview.

can we make nr 2 a toggle somewhere “is selectable: Y/N” “SingleSelect/MultiSelect”

(and also add those classes to the top-level dom “context-selectable” “context-singleselect / context-multiselect”, this helps us place font awesome or other custom checkbox or radio buttons)

This will save me having to make lots of random microflows to help with selections and teach developers how to create styling elements for such a trivial feature :D 

 

asked
0 answers