Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
split.phtml
Go to the documentation of this file.
1 <?php
7 // @codingStandardsIgnoreFile
8 
9 ?>
10 <?php
12 ?>
13 
14 <div <?= $block->getAttributesHtml() ?>>
15  <button <?= $block->getButtonAttributesHtml() ?>>
16  <span><?= $block->escapeHtml($block->getLabel()) ?></span>
17  </button>
18  <?php if ($block->hasSplit()): ?>
19  <button <?= $block->getToggleAttributesHtml() ?>>
20  <span>Select</span>
21  </button>
22 
23  <?php if (!$block->getDisabled()): ?>
24  <ul class="dropdown-menu" <?= /* @escapeNotVerified */ $block->getUiId("dropdown-menu") ?>>
25  <?php foreach ($block->getOptions() as $key => $option): ?>
26  <li>
27  <span <?= $block->getOptionAttributesHtml($key, $option) ?>>
28  <?= $block->escapeHtml($option['label']) ?>
29  </span>
30  <?php if (isset($option['hint'])): ?>
31  <div class="tooltip" <?= /* @escapeNotVerified */ $block->getUiId('item', $key, 'tooltip') ?>>
32  <a href="<?= $block->escapeHtml($option['hint']['href']) ?>" class="help">
33  <?= $block->escapeHtml($option['hint']['label']) ?>
34  </a>
35  </div>
36  <?php endif; ?>
37  </li>
38  <?php endforeach; ?>
39  </ul>
40  <?php endif; ?>
41  <?php endif; ?>
42 </div>
43 
44 <script type="text/x-magento-init">
45  {
46  ".actions-split": {
47  "Magento_Ui/js/grid/controls/button/split": {}
48  }
49  }
50 </script>
51 
$block
Definition: block.php:8
endif
Definition: split.phtml:40
endforeach
Definition: split.phtml:38