new mmir.view.ContentElement(group, view, parser, renderer)
The ContentElement represents "content" parts of a view; it may itself contain one or more ContentElements.
This class holds the name of the content-field (used via the yield-tag in the layouts: content, header, footer, dialogs, ...)
and its definition as HTML-String.
Name | Type | Description |
---|---|---|
group |
Array | Object |
an array or object with properties name {String}, and content {String} |
view |
Object | the view that owns this ContentElement-element |
parser |
mmir.parser.ParserUtils |
for the the content (optional) if supplied this object must have a function parse({String}) (see templateParseUtil) |
renderer |
mmir.parser.RenderUtils |
for the the content (optional) if supplied, a parser must also be supplied; the renderer must have a function parse({String}) (see templateRenderUtil) |
Members
-
protectedcommentsmmir.parser.ParsingResult
-
protecteddefinitionString
-
The "raw" template text.
-
protectedescapesmmir.parser.ParsingResult
-
protectedforsmmir.parser.ParsingResult
-
protectedhelpersmmir.parser.ParsingResult
-
protectedifsmmir.parser.ParsingResult
-
protectedlocalizationsmmir.parser.ParsingResult
-
List of the "localize" statements in the template.
-
protectedlocalizermmir.LanguageManager
-
the "localizer" i.e. for handeling internationalization / localized Strings
-
protectedparsermmir.parser.ParserUtils
-
-
protectedpartialsmmir.parser.ParsingResult
-
protectedrenderermmir.parser.RenderUtils
-
-
protectedscriptBlocksmmir.parser.ParsingResult
-
protectedscriptStatementsmmir.parser.ParsingResult
-
protectedviewmmir.view.View
-
-
protectedyields
-
NOTE by default this field is not added to the allContentElements list (i.e. will not be stored/stringified)
Methods
-
getName(){String}
-
Gets the name of a
mmir.view.ContentElement
object (content, header, footer, dialogs, ...).Returns:
Type Description String Name - used by yield tags in layout -
getView(){mmir.view.View}
-
Gets the owner for this ContentElement, i.e. the
mmir.view.View
object.Returns:
Type Description mmir.view.View the owning View