Put the html file in /App_Plugins/grid/editors/
Last active
January 6, 2021 13:46
-
-
Save AaronSadlerUK/2f7045f3e097d4728f3b94c233d3216c to your computer and use it in GitHub Desktop.
Grid Dropdownlist Setting
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"label": "CSS Class", | |
"description": "Specify a css class", | |
"key": "class", | |
"view": "/App_Plugins/grid/editors/dropdownlist.html", | |
"applyTo": "row", | |
"prevalues": [ | |
"value_1", | |
"value_2", | |
"value_3", | |
"value_4" | |
] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<select ng-model="model.value"> | |
<option value="" ng-selected="{{model.value == null}}">none</option> | |
<option ng-repeat="preval in model.prevalues" ng-selected="{{model.value != null && (model.value == preval.value || model.value == preval)}}" value="{{preval.value || preval}}">{{preval.label || preval.value || preval}}</option> | |
</select> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment