Namespace: assetFinder

Granite.author.ui. assetFinder

The asset finder allow the user to search for assets and then add those to the content of the page.
It is located in the SidePanel

Source:
ui/ui.assetFinder.js

Classes

AssetDragAndDrop

Members


<static> $el :jQuery

Corresponding jQuery element

Type:
  • jQuery
Source:
ui/ui.assetFinder.js

<static> registry :Object

Contains all registered controllers

Type:
  • Object
Source:
ui/ui.assetFinder.js

<static> TagList :Granite.author.ui.TagList

Lists of tags

Type:
  • Granite.author.ui.TagList
Source:
ui/ui.assetFinder.js

Methods


<static> register(name, controller, afterEntry)

Register an asset controller.
Asset controllers are responsible for the loading of assets of a given type in the Asset Finder.
NB: To add drag and drop capabilities for new asset types, make sure to also register the appropriate AssetDragAndDrop Controller under the dropController

Parameters:
Name Type Description
name string

Name of the controller

controller Granite.author.ui.assetFinder~AssetController

Controller instance

afterEntry string

Value representing the filter after which to add the given filter

Source:
ui/ui.assetFinder.js

Type Definitions


AssetController

Type:
  • Object
Properties:
Name Type Description
setUp function

Called before loading the current asset controller

tearDown function

Called before unloading the current asset controller

loadAssets function

Actually loads the assets of a certain type

setServlet function

Override the servlet path

setSearchPath function

Override the search path

setItemResourceType function

Override the item resource type

resetSearchPath function

Resets the search path to the default value

Source:
ui/ui.assetFinder.js