customising 'select' buttons and other buttons

customising 'select' buttons and other buttons

ialarmedalienialarmedalien Posts: 1Questions: 1Answers: 0

I'm using the select extension to add 'select all' and 'deselect all' buttons, and would also like to add a <input type="submit"> button to the array. It's not clear how to do that. Current code:

buttons: ['selectAll', 'selectNone', { text: 'Custom button' } ]

adding a custom button type requires the use of buttons.dom, i.e.
buttons: {
dom: {
buttons: {
tag: input, (etc.)

Can the two styles be combined? At the moment, it looks as though it may be easier to insert a pre-generated <input> element into the button array instead.

Answers

  • allanallan Posts: 63,893Questions: 1Answers: 10,530 Site admin

    The buttons.dom.... options are global for the page. They are used to set the tags that should be used for the display of the buttons, making it possible to integrate Buttons with various CSS frameworks.

    There is no way to set the tags for just a single button I'm afraid (which it sounds like it what you want?).

    Allan

This discussion has been closed.