Skip to content

ButtonIcon Option

Ryan Segura edited this page Feb 4, 2016 · 2 revisions

Type: String
Default: ui-icon-calculator

Allows setting a different primary <a href='http://api.jqueryui.com/theming/icons/'>icon class name</a> for the default icon. Feel free to use this option in your custom buttons as show in the <a href='https://github.com/KidSysco/jquery-ui-month-picker/wiki/Button-Option'>Button option</a> examples.


Set the option upon init.

$('.selector').MonthPicker({ ButtonIcon: 'ui-icon-clock' });
Get or set the option, after init.
//getter
var image = $('.selector').MonthPicker('option', 'ButtonIcon');

//setter
$('.selector').MonthPicker('option', 'ButtonIcon', false );
Clone this wiki locally