Skip to content

Commit 3427574

Browse files
committed
remove rtl method
1 parent db17120 commit 3427574

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

resources/views/select-tree.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
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>

src/SelectTree.php

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)