Class ContentItem
This is the basic class that represents a content item.
This class exposes main functions used to initialize and retrieve information from a content item.
Defined in: dfDataWidget.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
Construct a new ContentItem object.
|
| Method Attributes | Method Name and Description |
|---|---|
|
construct(contentItemNode)
|
|
|
Return the content item abstract xml.
|
|
|
Return the content item author.
|
|
|
Return the content item big image.
|
|
|
Return the content item category.
|
|
|
Return the content item xml.
|
|
|
Return the content item creation date.
|
|
|
getMode()
Return display mode (list or item) used by renderer.
|
|
|
getName()
Return the content item name.
|
|
|
Return the content item rating.
|
|
|
Return the content item small image.
|
|
|
getTags()
Return the content item tags.
|
|
|
getTitle()
Return the content item title.
|
|
|
getVotes()
Return the content item number of votes.
|
|
|
setMode()
Set the display mode (list or item) used by renderer.
|
Class Detail
ContentItem()
Construct a new ContentItem object.
- Parameters:
- {String} contentItemXML.
- The content item xml source.
- Returns:
- A new ContentItem instance
Method Detail
construct(contentItemNode)
- Parameters:
- contentItemNode
{String}
getAbstractXML()
Return the content item abstract xml.
{String}
getAuthor()
Return the content item author.
{String}
getBigImage()
Return the content item big image.
{String}
getCategory()
Return the content item category.
{String}
getContentXML()
Return the content item xml.
{String}
getDateCreation()
Return the content item creation date.
{String}
getMode()
Return display mode (list or item) used by renderer.
{String}
getName()
Return the content item name.
{String}
getRating()
Return the content item rating.
{String}
getSmallImage()
Return the content item small image.
{String}
getTags()
Return the content item tags.
{String}
getTitle()
Return the content item title.
{String}
getVotes()
Return the content item number of votes.
setMode()
Set the display mode (list or item) used by renderer.
- Parameters:
- {String} mode.
- The display mode.