I try to obtain the list of text options define in a richselect element (after json load).
In ‘onAfterRender’ event, I use this.getPopup().getList() to obtain the list of element but I don’t found a mean to read values.
Is this option only available for ClearAll command?
Thank you for your help
it doesn’t have a required event. But you can use theready
handler for the list within the suggest body:
view:"richselect", suggest:{
body:{
//view:"list" is not necessary
data:list_data,
ready:function(){
console.log(this.data.pull)
}
}
}
Thank you.
The trick was simply to create a ‘suggest’ list to access getText() and getValue() commands (which don’t seem to work with “richselect”).
Have a good day!