update list selector dynamically in webos
Posted
by Aswan
on Stack Overflow
See other posts from Stack Overflow
or by Aswan
Published on 2010-04-20T10:50:42Z
Indexed on
2010/04/20
10:53 UTC
Read the original article
Hit count: 348
webos
Hi
i want to update list selector items dynamically .i am set the list selector widget like following
this.ConversionToNumaric= [ {label:$L('One'), value:"1", secondaryIcon:''},
{label:$L('two'), value:"2", secondaryIcon:''},
{label:$L('three'), value:"3" , secondaryIcon:''}
]
this.controller.setupWidget('listSelectorConversionToNumaric', {labelPlacement:'left',label: $L('To'), choices: this.ConversionToNumaric, modelProperty:'currentConversionToNumaric'}, this.selectorsModel);
the above code i am using for setup the widget
this.ConversionToNumaric= [ {label:$L('four'), value:"4", secondaryIcon:''},
{label:$L('five'), value:"5", secondaryIcon:''}
]
]
this.currentConversionToPower.choices=this.ConversionToNumaric;
this.controller.modelChanged(this.currentConversionToNumaric);
what mistake i made here i don't know but it is not updating please help me
© Stack Overflow or respective owner