API Docs for: 0.8.0
Show:

ContentViewLoader Class

Renders a 1 or more pieces of content such as articles or pages

Constructor

ContentViewLoader

(
  • context
)

Parameters:

Methods

gatherData

(
  • contentArray
  • options
  • cb
)

Parameters:

  • contentArray Array
  • options Object
  • cb Function

getDefaultCommentsTemplatePath

() String

Returns:

String:

getDefaultCommentTemplatePath

() String

Returns:

String:

getDefaultContentTemplatePath

() String

Returns:

String:

getDefaultTemplatePath

() String

Returns:

String:

getDisplayAttr

(
  • val
)
String static

Parameters:

  • val

Returns:

String:

getMetaInfo

(
  • contentArray
  • options
  • cb
)

Parameters:

  • contentArray Array
  • options Object
  • cb Function

getTemplate

(
  • content
  • options
  • cb
)

Parameters:

  • content Array | Object
  • options Object
    • [useDefaultTemplate] Boolean optional

      Forces the default theme template to be selected

    • [topic] Object optional

      The topic represented by the collection of content to be rendered

    • [section] Object optional

      The section represented by the collection of content to be rendered

  • cb Function

onAngular

(
  • contentArray
  • options
  • cb
)

Parameters:

  • contentArray Array
  • options Object
  • cb Function

onCommentingUserPhoto

(
  • content
  • commentingUser
  • cb
)

Parameters:

  • content Object
  • commentingUser Object
  • cb Function

onCommentingUserPosition

(
  • content
  • options
  • cb
)

Parameters:

  • content Object
  • options Object
  • cb Function

onContent

(
  • contentArray
  • options
  • cb
)

Parameters:

  • contentArray Array
  • options Object
  • cb Function

onContentHeadline

(
  • content
  • options
  • cb
)

Parameters:

  • content Object
  • options Object
  • cb Function

onInfiniteScroll

(
  • contentArray
  • options
  • cb
)

Parameters:

  • contentArray Array
  • options Object
  • cb Function

onPageName

(
  • contentArray
  • options
  • cb
)

Parameters:

  • contentArray Array
  • options Object
  • cb Function

render

(
  • contentArray
  • options
  • cb
)

Parameters:

  • contentArray Array
  • options Object
    • [useDefaultTemplate] Boolean optional

      Forces the default theme template to be selected

    • [topic] Object optional

      The topic represented by the collection of content to be rendered

    • [section] Object optional

      The section represented by the collection of content to be rendered

  • cb Function

renderComment

(
  • comment
  • cts
  • cb
)

Parameters:

renderComments

(
  • content
  • ts
  • cb
)

Parameters:

renderContent

(
  • content
  • options
  • cb
)

Parameters:

  • content Object
  • options Object
  • cb Function

renderSingle

(
  • content
  • options
  • cb
)

Parameters:

  • content Object
  • options Object
  • cb Function

setMetaInfo

(
  • options
)

Parameters:

  • options Object

valOrEmpty

(
  • val
)
static

When passed a value it is evaluated as a boolean. If evaluated to TRUE the value is returned, if FALSE empty string is returned

Parameters:

  • val

Returns:

:

Properties

DISPLAY_NONE_STYLE_ATTR

String private static