Removing Play, Forward and Backward buttons from TimeSlider Dijit

922
4
05-21-2010 07:39 AM
Gregory_L___Greg_Gunther
New Contributor II
Is this possible?  I have set the corresponding properties to false but the buttons are still visible.  Seems if the ability to play the time sequence is removed, the button shouldn't be visible.  Would also like to remove the forward and backward buttons.
0 Kudos
4 Replies
DerekSwingley
Occasional Contributor
Use CSS to set their display property to none?
0 Kudos
Gregory_L___Greg_Gunther
New Contributor II
will give it a try.  Was hoping the timeslider had a property to do it easily.  More of a suggestion to the dev team I guess.
0 Kudos
Gregory_L___Greg_Gunther
New Contributor II
Sorry, should have figured this out.  TimeSlider has several dojo child dijits that have inherited capabilities.  These buttons can be removed by

timeSlider.playPauseBtn.destroy();
timeSlider.previousBtn.destroy();
timeSlider.nextBtn.destroy();

where timeSlider is an instance of a Time Slider dijit.
0 Kudos
derekswingley1
Frequent Contributor
Nice, good to know.
0 Kudos