Your IP : 216.73.216.43


Current Path : /home/rtorresani/www/vendor/magento/module-ui/view/base/templates/control/button/
Upload File :
Current File : //home/rtorresani/www/vendor/magento/module-ui/view/base/templates/control/button/split.phtml

<?php
/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */

/** @var $block \Magento\Ui\Component\Control\SplitButton */
?>

<div <?= $block->getAttributesHtml() ?>>
    <button <?= $block->getButtonAttributesHtml() ?>>
        <span><?= $block->escapeHtml($block->getLabel()) ?></span>
    </button>
    <?php if ($block->hasSplit()): ?>
        <button <?= $block->getToggleAttributesHtml() ?>>
            <span><?= $block->escapeHtml(__('Select')) ?></span>
        </button>

        <?php if (!$block->getDisabled()): ?>
            <ul class="dropdown-menu" <?= /* @noEscape */ $block->getUiId("dropdown-menu") ?>>
                <?php foreach ($block->getOptions() as $key => $option): ?>
                <li>
                    <span <?= $block->getOptionAttributesHtml($key, $option) ?>>
                        <?= $block->escapeHtml($option['label']) ?>
                    </span>
                    <?php if (isset($option['hint'])): ?>
                    <div class="tooltip" <?= /* @noEscape */ $block->getUiId('item', $key, 'tooltip') ?>>
                        <a href="<?= $block->escapeUrl($option['hint']['href']) ?>" class="help">
                            <?= $block->escapeHtml($option['hint']['label']) ?>
                        </a>
                    </div>
                    <?php endif; ?>
                </li>
                <?php endforeach; ?>
            </ul>
        <?php endif; ?>
    <?php endif; ?>
</div>
<?= /* @noEscape */$block->getAfterHtml() ?>
<script type="text/x-magento-init">
    {
        ".actions-split": {
            "Magento_Ui/js/grid/controls/button/split": {}
        }
    }
</script>