PHP Classes

File: resources/views/vendor/livewire-tables/bootstrap-4/includes/column-select.blade.php

Recommend this page to a friend!
  Classes of Nyi Nyi Lwin  >  mtube  >  resources/views/vendor/livewire-tables/bootstrap-4/includes/column-select.blade.php  >  Download  
File: resources/views/vendor/livewire-tables/bootstrap-4/includes/column-select.blade.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: mtube
Application to share videos between users
Author: By
Last change:
Date: 4 months ago
Size: 1,752 bytes
 

Contents

Class file image Download
@if ($columnSelect)
    <div class="mb-3 mb-md-0 pl-0 pl-md-2">
        <div
            x-data="{ open: false }"
            x-on:keydown.escape.stop="open = false"
            x-on:mousedown.away="open = false"
            class="dropdown d-block d-md-inline"
        >
            <button
                x-on:click="open = !open"
                class="btn dropdown-toggle d-block w-100 d-md-inline"
                type="button"
                id="columnSelect"
                aria-haspopup="true"
                x-bind:aria-expanded="open"
            >
                @lang('Columns')
            </button>

            <div
                class="dropdown-menu dropdown-menu-right w-100 mt-0 mt-md-3"
                x-bind:class="{'show' : open}"
                aria-labelledby="columnSelect"
            >
                @foreach($columns as $column)
                    @if ($column->isVisible() && $column->isSelectable())
                        <div wire:key="columnSelect-{{ $loop->index }}">
                            <label class="px-2 {{ $loop->last ? 'mb-0' : 'mb-1' }}">
                                <input
                                    wire:model="columnSelectEnabled"
                                    wire:target="columnSelectEnabled"
                                    wire:loading.attr="disabled"
                                    type="checkbox"
                                    value="{{ $column->column() }}"
                                />
                                <span class="ml-2">{{ $column->text() }}</span>
                            </label>
                        </div>
                    @endif
                @endforeach
            </div>
        </div>
    </div>
@endif

For more information send a message to info at phpclasses dot org.