mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-24 02:38:50 +02:00
Added a stimulus controller for tagsinput.
This commit is contained in:
parent
f276c436ae
commit
f21c339046
3 changed files with 33 additions and 42 deletions
|
@ -147,6 +147,7 @@ class PartBaseType extends AbstractType
|
|||
'empty_data' => '',
|
||||
'attr' => [
|
||||
'class' => 'tagsinput',
|
||||
'data-controller' => 'elements--tagsinput',
|
||||
'data-autocomplete' => $this->urlGenerator->generate('typeahead_tags', ['query' => 'QUERY']),
|
||||
],
|
||||
'disabled' => !$this->security->isGranted('tags.edit', $part),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue