Hi,
Can Tagpicker have select all values option without using lookup screen.
Currently we can search and select single values only.
Hi,
Can Tagpicker have select all values option without using lookup screen.
Currently we can search and select single values only.
Hello,
You need to create a custom action to select all items.
For example:
Controller:
@Autowired
private TagPicker<User> userTagPicker;
@Autowired
private CollectionContainer<User> usersDc;
@Subscribe("userTagPicker.selectAllAction")
public void onSelectAllAction(final Action.ActionPerformedEvent event) {
List<User> items = usersDc.getItems();
userTagPicker.setValue(items);
}
Descriptor:
<tagPicker id="userTagPicker" optionsContainer="usersDc">
<actions>
<action id="selectAllAction" caption="All" icon="LIST"/>
<action id="value_clear" type="value_clear"/>
</actions>
</tagPicker>
UI component:
Regards,
Nikita
Thank you