structured-filter
structured-filter copied to clipboard
Exclusive list
It would be nice to have a list but with radio buttons so only one option is ever selected.
Perhaps:
{ type: "exclusiveList", id: "myID", label: "Fancy Exclusive List", list: [
{id: "opt1", label: "First Option"},
{id: "opt2", label: "Second Option"},
{id: "opt3", label: "Third Option"}
]}
And then
case fTypes.exculsiveList:
var arrayLength = this._field.list.length;
h+='<span id="value">';
for (var i = 0; i < arrayLength; i++) {
h+= EvoUI.inputRadio(this._field.list[i].label, this._field.list[i].id, this._field.list[i].label, v==this._field.list[i].id, 'value' + this._field.list[i].id);
}
h +='</span>';
break;
Haven't looked too deeply into this, I know there would need to be a few more changes to bring this in.