| 2 | |
| 3 | i just saw a closed bug |
| 4 | http://bugs.jqueryui.com/ticket/5946 |
| 5 | which is strange for me, because the case is kinda very private. He want to hide certain buttons from a button set. |
| 6 | for me the solution should not be so general for all buttonsets and buttons. If he wants to hide specific button he should add a class ui-helper-hidden or better to implement some kind of functionality in ui.button and ui.buttonset to hide button |
| 7 | ex. |
| 8 | |
| 9 | {{{ |
| 10 | $("#mybutton").button('hide'); |
| 11 | }}} |
| 12 | |
| 13 | like disable |
| 14 | {{{ |
| 15 | $("#mybutton").button('disable'); |
| 16 | }}} |
| 17 | |
| 18 | and for buttonset we should have a possibility to add as parameter an array with buttons to show or to hide |
| 19 | |
| 20 | {{{ |
| 21 | $("#mybuttonset").buttonset({ |
| 22 | hide:[0,3,5], |
| 23 | show:[1,2,4] |
| 24 | }); |
| 25 | }}} |
| 26 | |