In one of our component we are developing , we have a scenario selecting on the path browser we will get the child nodes and set these values into the selection field.
we have created a listener and on selection of the Path browser we will make a ajax an call and get all the child nodes of it and i am setting values in the selection filed.The problem is was unable to delete the only selected value it is appending to my child list.
var test2= $("[name='./childproperty']")[0];
var length = $(".coral3-SelectList-item").length;
if(length >0){
$(".coral3-SelectList-item").remove();
}
-.each(pathbrowserchildvalues, function(value,lang) {
$(test2).append('<coral-select-item>'+value.text+'</coral-select-item>);
});
note:- from ajax i am getting the values of "pathbrowserchildvalues".
Solved! Go to Solution.
Views
Replies
Total Likes
Hi,
I achieved same using coral API, please check below :
component - aem63app-repo/datepicker-multi at master · arunpatidar02/aem63app-repo · GitHub
Js - aem63app-repo/dynamic-dropdown.js at master · arunpatidar02/aem63app-repo · GitHub
Views
Replies
Total Likes
Hi,
I achieved same using coral API, please check below :
component - aem63app-repo/datepicker-multi at master · arunpatidar02/aem63app-repo · GitHub
Js - aem63app-repo/dynamic-dropdown.js at master · arunpatidar02/aem63app-repo · GitHub
Views
Replies
Total Likes