Javascript for Episerver 7.5 cms

formatters

Summary

Static module that defines miscellaneous formatter methods for use with the dgrid.

Location

epi-cms/dgrid/formatters

Properties

defaultIconClass

Methods

public method contentIcon ( typeIdentifier )

Adds an icon as specified for the type or a default object icon

Parameters

public method contentItem ( typeIdentifier , missingLanguageBranch , text , title , menuSettings , thumbnailUrl , isEncoded )

Formats a content object with icon missing language indicator and an optional menu

Parameters

public method contentItemFactory ( textSelector , titleSelector , iconSelector , menuSettings , thumbnailSelector , languageSelector , isEncoded )

Factory function for configuring the contentItem formatter

Parameters

public method friendlyBoolean ( value )

Creates a div with a "checked/not checked" css class.

Parameters

public method languageBranch ( languageBranch )

Adds an indicator of the true langauge for the content object

Parameters

public method localizedDate ( date )

Shim for the epi/date/toUserFriendlyHtml function

Parameters

public method menu ( settings )

Adds a menu icon

Parameters

public method secondaryText ( value , valueIsHtml )

Wrappes the value with a span with the 'epi-secondaryText' css class

Parameters

public method thumbnail ( thumbnailUrl )

Parameters

public method userName ( userName )

Shim for the epi/username/toUserFriendlyHtml function

Parameters

public method versionStatus ( versionId )

Shim for the epi-cms/contentediting/ContentActionSupport.getVersionStatus function

Parameters

public method visibleLink ( value , valueIsHtml )

Wrappes the value with a span with the 'epi-visibleLink' css class

Parameters