YUI recommends YUI 3.

YUI 2 has been deprecated since 2011. This site acts as an archive for files and documentation.

Yahoo! UI Library

Button  2.8.1

Yahoo! UI Library > button
Search:
 
Filters

Module: button

The Button Control enables the creation of rich, graphical buttons that function like traditional HTML form buttons. Unlike traditional HTML form buttons, buttons created with the Button Control can have a label that is different from its value. With the inclusion of the optional Menu Control, the Button Control can also be used to create menu buttons and split buttons, controls that are not available natively in HTML. The Button Control can also be thought of as a way to create more visually engaging implementations of the browser's default radio-button and check-box controls.

The Button Control supports the following types:

push
Basic push button that can execute a user-specified command when pressed.
link
Navigates to a specified url when pressed.
submit
Submits the parent form when pressed.
reset
Resets the parent form when pressed.
checkbox
Maintains a "checked" state that can be toggled on and off.
radio
Maintains a "checked" state that can be toggled on and off. Use with the ButtonGroup class to create a set of controls that are mutually exclusive; checking one button in the set will uncheck all others in the group.
menu
When pressed will show/hide a menu.
split
Can execute a user-specified command or display a menu when pressed.

This module contains the following classes:


Copyright © 2010 Yahoo! Inc. All rights reserved.