Defines the form for adding new items
- Components:
v-form
: used to put all input fieldsv-text-field
: used to enter the required data (ItemNames, Description etc)v-checkbox
: used to define an item which is countable or notv-autocomplete
: used to search for and select labels. Autocomplete includes Chips and slotted Templatesv-chip
: displays features from the dropdown listv-list-item
: displays the item of listv-list-item-action
: used to select chips from dropdown listv-list-item-content
: is slot for dropdown list contentv-list-item-title
: displays text contentv-btn
: used to save the item being createdv-snackbar
: displays success or errors messagescreate-label
: placeholder for button from createLabel-componentv-row
/v-col
: used to build layout
- computed:
getCurrentNameString()
: get the current name as string connected with i18n tag
- mounted:
languageDataService.getAll()
: get a list of all the languages on the serverlabelDataService.getAll()
: get a list of all existing labels on the server
- methods:
remove(item)
: Used to remove Item from selected Labels @param item label which should be removedgetName (item: any)
: Used to get Name based on current language @param item item which has property namesendItem ()
: is used to send all entered data to the server to create a new item