PDA

View Full Version : Renaming/Hiding ToolbarButtons



Lathentar
13 Nov 2006, 3:48 PM
Is there an easy way to rename and hide/show toolbar buttons? I'm basically wanting to have a delete/restore button that will strikethrough a selected row in a grid when pressed but remove the strike-through if one already exists. This functionality doesn't seem to be in the documentation.

jbowman
13 Nov 2006, 5:44 PM
See this blog post for adding things to the toolbar - http://www.jackslocum.com/yui/2006/09/26/using-the-remote-dataset-feature-of-the-grid/

In the documentation check YAHOO.ext.toolbar and YAHOO.ext.Toolbar and YAHOO.ext.ToolbarButton

And, as I just got finished playing with this :) Check out my most recent post that includes a code example in the examples session, found here: http://www.jackslocum.com/forum/viewtopic.php?t=715
In it I add a couple lines of text, a select field, a text input field, and custom button.

jack.slocum
13 Nov 2006, 6:44 PM
I just added these methods to the basic dialog buttons and I will add it to the toolbarbuttons as well. It will be in RC2.

show,hide,setText,setTooltip etc.