You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 31, 2022. It is now read-only.
possibility to use picker actions and dropdown list with options;
style-provider for tags;
alignments for tags container: TOP, RIGHT, BOTTOM, LEFT;
Progress
Investigate the issue
Adding/removing tags from layout;
Non-entity type works
Entity type works
Field properties and features;
Ability to add actions
LookupAction
Styling
Changes
Added new field - TagPicker. It is a replacement for the TokenList with some enhancements.
TagPicker enables to work with entities and simple data types. It combines ComboBox and ValuesPicker so it has a dropdown list and the ability to work with actions. A simple example is:
<layout>
<tagPicker id="tagPicker"/>
</layout>
Unique attributes
tagPosition - sets the position of tags relative to the field. The default value is BOTTOM. For instance:
inlineTags - defines how should be shown tags in one line or under each other. The default value is false. Vertical Inline
hideSelectedOptions - enables to hide options from dropdown list if the option is selected.
filterMode - sets filter mode for the dropdown list in the field. The default value is CONTAINS
inputPromt - a textual prompt that is displayed in the field
metaClass - defines entity's metaclass. It enables to use field with entity type without data container and use TagLookupAction.
Actions
As TagPicker is the inheritor of ValuesPicker it can use all actions that applicable for ValuesPicker. For instance, let's create a simple action that will display a notification:
Note, if there is no action defined in the TagPicker by default will be loaded ValueClearAction
TagPickerAction
This action works only when TagPicker has a data container or entity's metaclass. It works similar to LookupAction, but instead of "set" uses the "append" value.
Another feature of this action is multiSelect. It sets the "multiSelect" option to the Lookup Component. The default value is true.
Description
In fact it should be improved TokenList.
Proposal features:
Progress
Changes
Added new field - TagPicker. It is a replacement for the TokenList with some enhancements.
TagPicker
enables to work with entities and simple data types. It combinesComboBox
andValuesPicker
so it has a dropdown list and the ability to work with actions. A simple example is:Unique attributes
tagPosition - sets the position of tags relative to the field. The default value is
BOTTOM
. For instance:inlineTags - defines how should be shown tags in one line or under each other. The default value is
false
.Vertical
Inline
hideSelectedOptions - enables to hide options from dropdown list if the option is selected.
filterMode - sets filter mode for the dropdown list in the field. The default value is
CONTAINS
inputPromt - a textual prompt that is displayed in the field
metaClass - defines entity's metaclass. It enables to use field with entity type without data container and use TagLookupAction.
Actions
As
TagPicker
is the inheritor ofValuesPicker
it can use all actions that applicable forValuesPicker
. For instance, let's create a simple action that will display a notification:Note, if there is no action defined in the
TagPicker
by default will be loadedValueClearAction
TagPickerAction
This action works only when TagPicker has a data container or entity's metaclass. It works similar to
LookupAction
, but instead of "set" uses the "append" value.Another feature of this action is multiSelect. It sets the "multiSelect" option to the Lookup Component. The default value is
true
.Working with Entity
dataContainer
and property:metaClass
:Working with data type
Example with String type:
Java API
The text was updated successfully, but these errors were encountered: