Controls the content area of the notification area on the notification page.
- Source:
- Copyright:
- 2016 Ryan Wyllie
- 2016 Ryan Wyllie
- License:
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
Methods
(inner) getContainer() → {object}
Get the container element (which the content area is within).
Returns:
jQuery element
- Type
- object
(inner) getContent() → {object}
Get the content area content element.
Returns:
jQuery element
- Type
- object
(inner) getFooter() → {object}
Get the content area footer element.
Returns:
jQuery element
- Type
- object
(inner) getHeader() → {object}
Get the content area header element.
Returns:
jQuery element
- Type
- object
(inner) getRoot() → {object}
Get the root element.
Returns:
jQuery element
- Type
- object
(inner) getUserId() → {int}
Get the user id.
Returns:
- Type
- int
(inner) hide()
Hide the content area. Typically used with responsive styling on smaller screens.
(inner) registerEventListeners()
Create the event listeners for the content area.
(inner) setContentHMTL(html)
Change the HTML in the content area content element.
Parameters:
Name | Type | Description |
---|---|---|
html |
string | The HTML to be set. |
(inner) setFooterHTML(html)
Change the HTML in the content area footer element.
Parameters:
Name | Type | Description |
---|---|---|
html |
string | The HTML to be set. |
(inner) setHeaderHTML(html)
Change the HTML in the content area header element.
Parameters:
Name | Type | Description |
---|---|---|
html |
string | The HTML to be set |
(inner) show()
Display the content area. Typically used with responsive styling on smaller screens.
(inner) showNotification(notification) → {object}
Render the given notification context in the content area.
Parameters:
Name | Type | Description |
---|---|---|
notification |
object | The notification context (from a webservice) |
Returns:
jQuery promise
- Type
- object