1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <div class="grid-dropdown-actions dropdown">
- <a href="#" style="padding: 0 10px;" class="dropdown-toggle" data-toggle="dropdown">
- <i class="fa fa-ellipsis-v"></i>
- </a>
- <ul class="dropdown-menu" style="min-width: 70px !important;box-shadow: 0 2px 3px 0 rgba(0,0,0,.2);border-radius:0;left: -65px;top: 5px;">
- <?php $__currentLoopData = $default; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $action): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
- <li><?php echo $action->render(); ?></li>
- <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
- <?php if(!empty($custom)): ?>
- <?php if(!empty($default)): ?>
- <li class="divider"></li>
- <?php endif; ?>
- <?php $__currentLoopData = $custom; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $action): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
- <li><?php echo $action->render(); ?></li>
- <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
- <?php endif; ?>
- </ul>
- </div>
- <script>
- $('.table-responsive').on('shown.bs.dropdown', function(e) {
- var t = $(this),
- m = $(e.target).find('.dropdown-menu'),
- tb = t.offset().top + t.height(),
- mb = m.offset().top + m.outerHeight(true),
- d = 20;
- if (t[0].scrollWidth > t.innerWidth()) {
- if (mb + d > tb) {
- t.css('padding-bottom', ((mb + d) - tb));
- }
- } else {
- t.css('overflow', 'visible');
- }
- }).on('hidden.bs.dropdown', function() {
- $(this).css({
- 'padding-bottom': '',
- 'overflow': ''
- });
- });
- </script>
- <?php echo $__env->yieldContent('child'); ?>
- <?php /**PATH C:\phpstudy_pro\WWW\cydsyy-api\vendor\encore\laravel-admin\src/../resources/views/grid/actions/dropdown.blade.php ENDPATH**/ ?>
|