10 <div
id=
"<?= $block->getHtmlId() ?>" class=
"admin__grid-massaction">
12 <?php
if (
$block->getHideFormElement() !==
true):?>
13 <
form action=
"" id=
"<?= $block->getHtmlId() ?>-form" method=
"post">
15 <div
class=
"admin__grid-massaction-form">
16 <?=
$block->getBlockHtml(
'formkey') ?>
18 id=
"<?= $block->getHtmlId() ?>-select" 19 class=
"required-entry local-validation admin__control-select">
20 <option
class=
"admin__control-select-placeholder" value=
"" selected><?=
__(
'Actions') ?></option>
22 <option
value=
"<?= /* @escapeNotVerified */ $_item->getId() ?>"<?= (
$_item->getSelected() ?
' selected="selected"' :
'') ?>><?=
$_item->getLabel() ?></option>
25 <span
class=
"outer-span" id=
"<?= $block->getHtmlId() ?>-form-hiddens"></span>
26 <span
class=
"outer-span" id=
"<?= $block->getHtmlId() ?>-form-additional"></span>
27 <?=
$block->getApplyButtonHtml() ?>
29 <?php
if (
$block->getHideFormElement() !==
true):?>
32 <div
class=
"no-display">
34 <div
id=
"<?= $block->getHtmlId() ?>-item-<?= /* @escapeNotVerified */ $_item->getId() ?>-block">
35 <?=
$_item->getAdditionalActionBlockHtml() ?>
39 <div
class=
"mass-select-wrap">
41 id=
"<?= $block->getHtmlId() ?>-mass-select" 42 class=
"action-select-multiselect" 43 data-menu=
"grid-mass-select">
44 <optgroup label=
"<?= /* @escapeNotVerified */ __('Mass Actions') ?>">
45 <option disabled selected></option>
46 <?php
if (
$block->getUseSelectAll()):?>
47 <option
value=
"selectAll">
48 <?=
__(
'Select All') ?>
50 <option
value=
"unselectAll">
51 <?=
__(
'Unselect All') ?>
54 <option
value=
"selectVisible">
55 <?=
__(
'Select Visible') ?>
57 <option
value=
"unselectVisible">
58 <?=
__(
'Unselect Visible') ?>
62 <label
for=
"<?= $block->getHtmlId() ?>-mass-select"></label>
65 require([
'jquery'],
function($){
67 $(
'#<?= $block->getHtmlId() ?>-mass-select').change(
function () {
68 var massAction = $(
'option:selected',
this).val();
70 <?php
if (
$block->getUseSelectAll()):?>
72 return <?= /* @escapeNotVerified */ $block->
getJsObjectName() ?>.selectAll();
75 return <?=
$block->getJsObjectName() ?>.unselectAll();
79 return <?=
$block->getJsObjectName() ?>.selectVisible();
81 case 'unselectVisible':
82 return <?=
$block->getJsObjectName() ?>.unselectVisible();
89 <?php
if (!
$block->getParentBlock()->canDisplayContainer()): ?>
90 <?=
$block->getJsObjectName() ?>.setGridIds(
'<?= /* @escapeNotVerified */ $block->getGridIdsJson() ?>');
$block setTitle( 'CMS Block Title') -> setIdentifier('fixture_block') ->setContent('< h1 >Fixture Block Title</h1 >< a href=" store url</a><p> Config value
<?=$myBlock-> getJsObjectName() ?>.rows.each(function(row)
jquery extjs ext tree mage adminhtml form