edit-select
Overview
Basic Example
<object-table ...>
<column display="{field}">
<edit-select options="$:getColorOptions()" value="$object.favorite_color" on-change="$:updateFavoriteColor($object, newValue, oldValue)" />
</column>
</object-table>function getColorOptions() {
return ["Red", "Purple", "Blue", "Green", "Yellow"];
}
function updateFavoriteColor(obj, newValue, oldValue) {
obj.favorite_color = newValue;
obj.save();
}
Standard Attributes
on-change
on-changeoptions
optionsvalue
valueAdvanced Attributes
disabled
disabledLast updated