Welcome,
Guest
.
Please
login
or
register
.
Did you miss your
activation email
?
News:
Elxis documentation
for users and developers.
Home
Help
Login
Register
Elxis CMS Forum
»
Support
»
Elxis 4.x/5.x DEV
»
How to use the new XML parameter itemstatus in Elxis 5.x
« previous
next »
Print
Pages: [
1
]
Author
Topic: How to use the new XML parameter itemstatus in Elxis 5.x (Read 3397 times)
datahell
Elxis Team
Hero Member
Posts: 10356
How to use the new XML parameter itemstatus in Elxis 5.x
«
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
Logged
Elxis Team
|
Is Open Source
|
IOS Rentals | IOS AERO
Print
Pages: [
1
]
« previous
next »
Elxis CMS Forum
»
Support
»
Elxis 4.x/5.x DEV
»
How to use the new XML parameter itemstatus in Elxis 5.x