Hi all,
I want to build a Slider component with number spinner to change the sliders quantity. I can't figure it out how the use UpdateContext Function to change the Sliders value in the component.
The component view:
Outside the component, I have successfully applied these steps:
Slider Control on Default
Value(AddMe)
+ OnSelect
UpdateContext ({AddMe:slRooms.Value-1})
- Controll
UpdateContext ({AddMe:Rooms.Value+1})
Now is the question, how to implement it as component?
Hey @Aionik
You can't use the UpdateContext function in components, but you can use Set - you should be able to manipulate a variable in the same way using that function, although it will be a global variable coped to the component.
Cheers,
Sancho