Skip to content

Commit f0e53f4

Browse files
authored
Merge pull request #218 from ejgandelaberon/master
fix: multiple config option of select2
2 parents 668915d + 0735e51 commit f0e53f4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Html/Editor/Fields/Select2.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ public function optsPlaceholder(string $text = '', string $id = ''): static
3838
]);
3939
}
4040

41+
public function multiple(bool $value = true): static
42+
{
43+
return $this->opts(['multiple' => $value]);
44+
}
45+
4146
/**
4247
* Set select2 ajax option.
4348
*

0 commit comments

Comments
 (0)