REQUEST A LIVE DEMO

Facet Customizer

dragonGlass.FacetCustomizer

Description:

Interface used by the FacetModel to create a facet query and adapt the results to the view. The default implementation does nothing.

Constructor

    
new FacetCustomizer()

Methods

    
getFacetDisplayName(schema, facetName, term) -> {string}

Parameters:

Name Type
schema string
facetName string
term string

Returns:

display name for a facet


    
getShowableFacetsForSchemas(schema) -> {array}

Parameters:

Name Type
schema string

Returns:

facet names - for example: ['content_type','etc']


    
getTermDisplayName(schema, facetName, term) -> {string}

Parameters:

Name Type
schema string
facetName string
term string

Returns:

display name for a term