Elxis CMS Forum

Support => Elxis 4.x/5.x DEV => Topic started by: datahell on May 13, 2019, 22:22:09

Title: How to use the new XML parameter itemstatus in Elxis 5.x
Post by: datahell on May 13, 2019, 22:22:09
Elxis 5.x has a new eye catching form type named "itemstatus". It is like a select box because you can only choose between predefined values but looks like something else. By clicking, or touching, on it you switch to the next value, and the next, until we reach the last element and then we go again to the first value. Each value can have a color for easy distinguism of the values. For instance a No value can be read which a Yes can be Green. Note that itemstatus accept only integers as values (no strings).

Here is an example:
<param type="itemstatus" name="favteam" default="0" label="Your favorite team" description="">
   <option value="0" color="red">None</option>
   <option value="1" color="lightgreen">Barcelona</option>
   <option value="2" color="green">Milan</option>
   <option value="3" color="blue">Real Madrid</option>
   <option value="4" color="purple">Liverpool</option>
</param>

Available colors are: white, green, lightgreen, yellow, orange, red, gray, darkgray, blue, lightblue, cyan, purple, black and none