File tree Expand file tree Collapse file tree 2 files changed +2
-11
lines changed Expand file tree Collapse file tree 2 files changed +2
-11
lines changed Original file line number Diff line number Diff line change 3030 grouped: '{{ $getGrouped () } } ',
3131 openLevel: '{{ $getDefaultOpenLevel () } } ',
3232 direction: '{{ $getDirection () } } ',
33- rtl: '{{ $ getRtl ( ) } } '
33+ rtl: '{{ (( __ ( ' filament-panels::layout.direction ' )?? ' ltr ' ) == ' rtl ' ? true : false ) } } '
3434 })"
3535 >
3636 <div x-ref =" tree" ></div >
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ class SelectTree extends Field
4040 protected bool $ enableBranchNode = false ;
4141
4242 protected bool $ grouped = true ;
43- protected bool $ rtl = false ;
43+
4444 protected string |Closure $ relationship ;
4545
4646 protected ?Closure $ modifyQueryUsing ;
@@ -185,11 +185,6 @@ public function direction(string $direction): static
185185 return $ this ;
186186 }
187187
188- public function rtl (bool $ flag = true )
189- {
190- $ this ->rtl = $ flag ;
191- return $ this ;
192- }
193188 public function parentNullValue (int |string $ parentNullValue = null ): static
194189 {
195190 $ this ->parentNullValue = $ parentNullValue ;
@@ -339,10 +334,6 @@ public function getDirection(): string
339334 {
340335 return $ this ->evaluate ($ this ->direction );
341336 }
342- public function getRtl (): bool
343- {
344- return $ this ->rtl ;
345- }
346337 public function getDisabledOptions (): array
347338 {
348339 return $ this ->evaluate ($ this ->disabledOptions );
You can’t perform that action at this time.
0 commit comments