You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hello
i want to create a custom select element
i have my data like this :
"list": [
{
"id": "lhEMz6vl",
"name": "Qualit\u00e9"
},
{
"id": "EFJzlnk8",
"name": "Hygi\u00e8ne & Sant\u00e9"
},
]
i want my data appear in the exact position as in the original dataset
this is my directive, but the ng-selected do not work
TetxDirective.config(['$autofieldsProvider', function($autofieldsProvider){
// Checkbox Field Handler
$autofieldsProvider.registerHandler('select_adv', function(directive, field, index){
console.log(field);
var current_value = field.value;
console.log("current_value " + current_value);
console.log("list " );
var fieldElements = $autofieldsProvider.field(directive, field, '<select id="{{field.name}}" name="{{field.name}}" ng-model="list[0][\'foldertool_data\'][\'list\'][0] " ng-options="option as option.name for option in list[0][\'foldertool_data\'][\'list\'] " > </select>' );
return fieldElements.fieldContainer;
});
}]);
The text was updated successfully, but these errors were encountered:
hello
i want to create a custom select element
i have my data like this :
"list": [
{
"id": "lhEMz6vl",
"name": "Qualit\u00e9"
},
{
"id": "EFJzlnk8",
"name": "Hygi\u00e8ne & Sant\u00e9"
},
]
i want my data appear in the exact position as in the original dataset
this is my directive, but the ng-selected do not work
The text was updated successfully, but these errors were encountered: