Is it possible to change button's behavior in a "menu style"?

Is it possible to change button's behavior in a "menu style"?

VyacheslavVyacheslav Posts: 70Questions: 27Answers: 0

Is it possible to change button's behavior in a "menu style"?

My problem is almost the same as I had in https://datatables.net/forums/discussion/31571/how-to-change-button-s-behavior-in-the-standard-example-page-length

When I click a button in drop-down menu I expect the button will be closed right after click.

Please see example: http://plnkr.co/edit/tJlVNa?p=preview

Replies

  • allanallan Posts: 63,695Questions: 1Answers: 10,500 Site admin

    As of Buttons 1.1.2 yes. The collection type has an autoClose option which can be set to true to automatically close the list.

    Allan

  • VyacheslavVyacheslav Posts: 70Questions: 27Answers: 0

    It works. Thanks a lot!

This discussion has been closed.