Class ecm.widget.listView.modules.RepositorySelector


Extends ecm.widget.listView.modules._Module.
This content list module provides the ability to display the repository selector in the content list.
Defined in: <ecm\widget\listView\modules\RepositorySelector.js>.

Constructor Summary

Constructor Attributes Constructor Name and Description
 

Field Summary

Field Attributes Field Name and Description
 
Boolean indicating if the repository selector should be hidden if there is only one repository.
 
An optional function.

Method Summary

Method Attributes Method Name and Description
 
Destroy.
 
Focus on the dropdown.
 
See GridX API documentation for details.
 
getRepositoryId(repositoryId)
Get the selected repository id.
 
onSelect(repository)
Event called when a Repository is selected.
 
Preload.
 
setRepositoryId(repositoryId)
Set the selected repository id.

Constructor Detail

ecm.widget.listView.modules.RepositorySelector()

Since:
2.0.3

Field Detail

hideWhenOneRepository

Boolean indicating if the repository selector should be hidden if there is only one repository.

validateRepository

An optional function. If defined, the repository will only be added to the repository selection list if the return value is true.

Method Detail

destroy()

Destroy.

focus()

Focus on the dropdown.

getAPIPath()

See GridX API documentation for details.

getRepositoryId(repositoryId)

Get the selected repository id.
Parameters:
repositoryId
Returns:
The repository id that is selected.

onSelect(repository)

Event called when a Repository is selected.
Parameters:
repository
Instance of ecm.model.Repository.

preload()

Preload.

setRepositoryId(repositoryId)

Set the selected repository id.
Parameters:
repositoryId
The repository id to select.