66@endphp
77
88<div wire:disabled =" updateTree"
9- x-data =" {
9+ x-data =" {
1010 init: function () {
1111 let nestedTree = $('#{{ $containerKey } } ').nestable({
1212 group: {{ $containerKey } } ,
1313 maxDepth: {{ $maxDepth } } ,
1414 expandBtnHTML: '',
1515 collapseBtnHTML: '',
1616 });
17-
17+
1818 // Custom expand/collapse buttons
1919 $('#{{ $containerKey } } .dd-item-btns [data-action=expand]').on('click', function (el) {
2020 let list = $(this).closest('li');
3434 list.find('> .dd-list > .dd-item').addClass('dd-collapsed hidden');
3535 }
3636 });
37-
37+
3838 $('#nestable-menu [data-action=expand-all]').on('click', function () {
3939 $('.dd').nestable('expandAll');
4040 $('.dd').find('.dd-item-btns [data-action=expand]').addClass('hidden');
5959 <x-filament::section :heading =" ($this->displayTreeTitle() ?? false) ? $this->getTreeTitle() : null" >
6060 <menu class =" flex gap-2 mb-4" id =" nestable-menu" >
6161 <div class =" btn-group" >
62- <x-filament::button tag =" button" data-action =" expand-all" wire:loading.attr =" disabled" wire:loading.class =" cursor-wait opacity-70" >
62+ <x-filament::button color = " gray " tag =" button" data-action =" expand-all" wire:loading.attr =" disabled" wire:loading.class =" cursor-wait opacity-70" >
6363 {{ __ (' filament-tree::filament-tree.button.expand_all' ) } }
6464 </x-filament::button >
65- <x-filament::button tag =" button" data-action =" collapse-all" wire:loading.attr =" disabled" wire:loading.class =" cursor-wait opacity-70" >
65+ <x-filament::button color = " gray " tag =" button" data-action =" collapse-all" wire:loading.attr =" disabled" wire:loading.class =" cursor-wait opacity-70" >
6666 {{ __ (' filament-tree::filament-tree.button.collapse_all' ) } }
6767 </x-filament::button >
6868 </div >
6969 <div class =" btn-group" >
70- <x-filament::button tag =" button" data-action =" save" wire:loading.attr =" disabled" wire:loading.class =" cursor-wait opacity-70" >
71- <x-filament::loading-indicator class =" h-4 w-4" wire:loading wire:target =" updateTree" />
70+ <x-filament::button tag =" button" data-action =" save" wire:loading.attr =" disabled" wire:loading.class =" cursor-wait opacity-70" >
71+ <x-filament::loading-indicator class =" h-4 w-4" wire:loading wire:target =" updateTree" />
7272 <span wire:loading.remove wire:target =" updateTree" >
7373 {{ __ (' filament-tree::filament-tree.button.save' ) } }
7474 </span >
75-
75+
7676 </x-filament::button >
7777 </div >
7878 </menu >
7979 <div class =" filament-tree dd" id =" {{ $containerKey } }" >
80- <x-filament-tree::tree .list :records =" $records" :containerKey =" $containerKey" :tree =" $tree" />
80+ <x-filament-tree::tree .list :records =" $records" :containerKey =" $containerKey" :tree =" $tree" />
8181 </div >
8282 </x-filament::section >
8383</div >
8686 @php
8787 $action = $this -> getMountedTreeAction ();
8888 @endphp
89-
89+
9090 <x-filament::modal
9191 :alignment =" $action?->getModalAlignment()"
9292 :close-button =" $action?->hasModalCloseButton()"
133133 {{ $action -> getModalContentFooter () } }
134134 @endif
135135 </x-filament::modal >
136- </form >
136+ </form >
0 commit comments