[ 2 posts ]

Jason Duley

  • Username: jduley
  • Joined: Fri May 13, 2011 2:03 pm
  • Posts: 8
  • Offline
  • Profile
Tags:

update value of spinner programatically

Post Posted: Fri Oct 07, 2011 11:31 am
+0-
how can I update the value of the spinner using code to reset it back to an initial value?

Satyam

YUI Contributor

  • Username: Satyam
  • Joined: Tue Dec 09, 2008 12:34 am
  • Posts: 2016
  • Location: Sitges, Spain
  • GitHub: Satyam
  • Gists: Satyam
  • IRC: DevaSatyam
  • YUI Developer
  • Offline
  • Profile

Re: update value of spinner programatically

Post Posted: Fri Oct 07, 2011 8:56 pm
+0-
You do:

mySpinner.set('value', 20);

or whatever the value is. Spinner knows nothing about 'initial values'. It is up to you what you consider as such. Value is set at zero initially because it has to have a value, but spinner does not give it any particular significance.
  [ 2 posts ]
Display posts from previous:  Sort by  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum