Opened 13 years ago
Closed 13 years ago
#5148 closed bug (fixed)
Button docs say there is a click callback
Reported by: | vmx | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 1.8 |
Component: | ui.button | Version: | 1.8rc1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
The button docs bundled with 1.8rc1 [1] define a click event. You should be able to set it as an option. The example uses:
$('.selector').button({ click: function(event, ui) { ... } });
This doesn't work work for me. But I can bind a function to the click event with bind() as follows:
$('.selector').bind('click', function(event, ui) { ... });
Two test cases are attached. Though I'm not sure if they belong to the events or to the options tests.
Are the wiki docs keep in sync with the bundled docs? In the wiki the click event is missing [2].
[1] http://jquery-ui.googlecode.com/svn/tags/1.8rc1/docs/button.html
Attachments (1)
Change History (2)
Changed 13 years ago by
Attachment: | ui-button-click-option-test.patch added |
---|
comment:1 Changed 13 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Summary: | Button click option doesn't work → Button docs say there is a click callback |
This was a mistake in the docs that has been fixed. There are no custom callbacks/events for the button plugin.
Note: See
TracTickets for help on using
tickets.
Test case for binding an click event to a ui.button