0

ValueDisplay

I've tried unsuccessfuly to use the ValueDisplay controller. I tried to attach it to a ToggleDisplay controller but both event valueChanged event ended being triggered at the same time (2 sets of options were being displayed + the animation did not work for the ValueDisplay).

CODE
         this.controls.renewButton = new KONtx.control.ToggleButton({
label: 'Subscription time',
value: currentAppData.get("subscriptionValue") || 0,
options: [
{value: '1', label: '1 month'},
{value: '3', label: '3 months'},
{value: '6', label: '6 months'},
],
events: {
onValueChanged: function(event) {
var value = event.payload.value;
currentAppData.set("subscriptionValue", value); },
},
}).appendTo(this);

this.valueDisplay = new KONtx.control.ValueDisplay({
source: this.controls.renewButton, // or this.valueDisplay.attachToSource(this.controls.renewButton)
animate: true,
styles: {
height:50,
hAlign: 'right',
vAlign: 'center'
}
}).appendTo(this);


Can you help please?

fw version: 1.1.42
wc-wdk: 0.9.6-18

by
0 Replies

Recent Posts

in General - Yahoo! TV Widgets