Class: EditTags

EditTags()

Handles the tags of the selected fileEntries inside a modal.

Members

_commonTags :List.<String>

Tags that want to be edited.
Type:
  • List.<String>
Source:

_loading :Boolean

Flag that indicate if loading icon must be shown.
Type:
  • Boolean
Source:

_showModal :Boolean

Flag that indicate if the modal must be shown.
Type:
  • Boolean
Source:

description :String

Description
Type:
  • String
Source:

fileEntries :List.<String>

List of selected file entries.
Type:
  • List.<String>
Source:

folderId :String

Folder Id
Type:
  • String
Source:

multiple :Boolean

Flag that indicate if multiple file entries has been selected.
Type:
  • Boolean
Source:

namespace :string

Portlet's namespace
Type:
  • string
Source:

pathModule :String

PathModule
Type:
  • String
Source:

pathModule :String

PathModule
Type:
  • String
Source:

pathModule :String

PathModule
Type:
  • String
Source:

repositoryId :String

RepositoryId
Type:
  • String
Source:

selectAll :Boolean

Flag that indicate if "select all" checkbox is checked.
Type:
  • Boolean
Source:

showModal :Boolean

Flag that indicate if the modal must be shown.
Type:
  • Boolean
Source:

spritemap :String

Path to images.
Type:
  • String
Source:

urlSelection :String

Url to backend service that provides the selection information.
Type:
  • String
Source:

urlSelection :String

Url to backend service that provides the selection description.
Type:
  • String
Source:

urlTags :String

Url to backend service that provides the common tags info.
Type:
  • String
Source:

urlUpdateTags :String

Url to backend service that updates the tags.
Type:
  • String
Source:

Methods

_fetchTagsRequest(url, bodyData, callback)

Creates the ajax request.
Parameters:
Name Type Description
url String Url of the request
bodyData Object The body of the request
callback function Callback function
Source:

_setCommonTags(commonTags) → {List.<{label, value}>}

Transforms the tags list in the object needed for the ClayMultiSelect component.
Parameters:
Name Type Description
commonTags List.<String>
Source:
Returns:
new commonTags object list
Type
List.<{label, value}>

attached()

Source:

close()

Close the modal.
Source:

created()

Source:

open()

Open the modal and get the commont tags.
Source: