Menu button taglib ver. 1.3


    Custom JSP taglib for UI development. This taglib lets you create a button that will open pull down menu. For example:
 


<%@ taglib uri="taglib.tld" prefix="m" %>

<m:MenuButton title="Click me" value="Open menu" buttonStyle="width:90px" menuStyle="width:90px;">
  <m:link value="javascript:alert('Option 1')">Option 1</m:link>
  <m:link value="/index.html">Option 2</m:link>
</m:MenuButton>

and you will get the following picture:

Menu here is a collection of links or JavaScript calls.

Tags are:

MenuButton

Body tag provides a button with a pull down menu. Parameters are:

1) value Describes a value (caption) for the button.
2) title Optional parameter. Describes a tooltip for the button.
3) id Optional parameter. Describes a DHTM id for the button.
4) buttonStyle Optional parameter. Describes your own CSS style for the button.
5) menuStyle Optional parameter. Describes your own CSS style for the menu. Default value is background-color:#d3d3d3.

link

Body tag describes an option for the menu. Tag's body describes a value (caption) for the option. Parameters are:

1) value Describes an action for this option: URL or JavaScript calls
2) className Optional parameter. Describes your own CSS class for this option.
3) style Optional parameter. Describes your own CSS style for this option.

for downloading:

Library: menubuttontag.jar    Description: taglib.tld

© Coldbeans      Comments?

See also Coldtags suite - the largest collection of custom JSP tags.

     

Also in Coldtags: