14 lines
498 B
JavaScript
14 lines
498 B
JavaScript
const checkAll = function(event) {
|
|
event.preventDefault();
|
|
const $input = $(event.target).closest('.shiny-input-a11ycheckboxgroup');
|
|
$input.find('input[type=\"checkbox\"]').prop('checked', true);
|
|
$input.trigger('change');
|
|
return false;
|
|
};
|
|
const clearAll = function(event) {
|
|
event.preventDefault();
|
|
const $input = $(event.target).closest('.shiny-input-a11ycheckboxgroup');
|
|
$input.find('input[type=\"checkbox\"]').prop('checked', false);
|
|
$input.trigger('change');
|
|
return false;
|
|
}; |