Select to view content in your preferred language

Removing Play, Forward and Backward buttons from TimeSlider Dijit

1108
4
05-21-2010 07:39 AM
Gregory_L___Greg_Gunther
Deactivated User
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
Regular Contributor
Use CSS to set their display property to none?
0 Kudos
Gregory_L___Greg_Gunther
Deactivated User
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
Deactivated User
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
Deactivated User
Nice, good to know.
0 Kudos