Dynamic Toolbar

Persisting Attributes

In some cases you will want your toolbar to remember the value of some attributes from one session to the next. For instance, once a button is hidden you may want it to remain hidden, even if the browser is closed and started again. This can be achieved through attribute persistence.

Let's say we want a toolbarbutton to remember if it was hidden. The following snippet would achieve it:

<toolbarbutton persist="hidden" />

The “persist” attribute contains a list of space-separated attributes. The attributes in the list will be saved from one session to the next.

Let's assume the label in the toolbarbutton can be changed by the user. If we wanted to remember that as well, we would modify the “persist” attribute as shown below:

<toolbarbutton persist="hidden label" />

 

 
Dynamic Toolbar Home | Privacy | Contact Us©2010 Visicom Media Inc. All rights reserved.