Skip to content

Commit 07b1237

Browse files
Merge pull request #6 from CodeWithDennis/feature/add-additional-options
Feature/add additional options
2 parents eaaee55 + ec14ab5 commit 07b1237

File tree

4 files changed

+3
-17
lines changed

4 files changed

+3
-17
lines changed

resources/dist/tree.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

resources/js/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export default function tree({
1313
showTags = true,
1414
clearable = true,
1515
isIndependentNodes = true,
16-
alwaysOpen = false
16+
alwaysOpen = false,
1717
}) {
1818
return {
1919
state,

resources/views/select-tree.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
disabled: '{{ $isDisabled() }}',
2323
isSingleSelect: '{{ !$getMultiple() }}',
2424
isIndependentNodes: '{{ $getIndependent() }}',
25-
showTags: '{{ $getMultiple() && $getShowTags() }}',
25+
showTags: '{{ $getMultiple() }}',
2626
alwaysOpen: '{{ $getAlwaysOpen() }}',
2727
clearable: '{{ $getClearable() }}',
2828
})"

src/SelectTree.php

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ class SelectTree extends Field
2323

2424
protected bool $alwaysOpen = false;
2525

26-
protected bool $showTags = true;
27-
2826
protected bool $independent = true;
2927

3028
protected bool $clearable = true;
@@ -60,13 +58,6 @@ public function independent(bool $independent = true): static
6058
return $this;
6159
}
6260

63-
public function showTags(bool $showTags = true): static
64-
{
65-
$this->showTags = $showTags;
66-
67-
return $this;
68-
}
69-
7061
public function alwaysOpen(bool $alwaysOpen = true): static
7162
{
7263
$this->alwaysOpen = $alwaysOpen;
@@ -118,11 +109,6 @@ public function getAlwaysOpen(): bool
118109
return $this->evaluate($this->alwaysOpen);
119110
}
120111

121-
public function getShowTags(): bool
122-
{
123-
return $this->evaluate($this->showTags);
124-
}
125-
126112
public function getDisabledBranchNode(): bool
127113
{
128114
return $this->evaluate($this->disabledBranchNode);

0 commit comments

Comments
 (0)