list.events.on(“Click”, function(id){
console.log(“The item with the id “+ list.selection.getId(id) +” was clicked.”);
});
I want to get value from bean but,get other attribute
bean like this {id:1,name:“luck”}
i want to get name value
how to do?
list.events.on(“Click”, function(id){
console.log(“The item with the id “+ list.selection.getId(id) +” was clicked.”);
});
I want to get value from bean but,get other attribute
bean like this {id:1,name:“luck”}
i want to get name value
how to do?
Please, try to use:
list.events.on(“Click”, function(id){
console.log(list.data.getItem(id).name)
//console.log(“The item with the id “+ list.selection.getId(id) +” was clicked.”);
});