Skip to main content
Hitachi Vantara Lumada and Pentaho Documentation

notificationsComponent

cdf.dashboard.Popups.notificationsComponent

 
Static

The Error Notification Popup object containing the default values for a error notification popup.

Source: dashboard/Popups.js, line 170

Example

<div class='cdfNotification component small>
 <div class='cdfNotificationBody'>
 <div class='cdfNotificationImg'>&nbsp;</div>
 <div class='cdfNotificationTitle' title='Component Error'>Component Error</div>
 <div class='cdfNotificationDesc' title='Error processing component.'>Error processing component.</div>
 </div>
</div>

Members

Name Description
defaults : Object

The Popup default properties.

template : String

The template of the Popup.

Methods

Name Description
render(ph, newOpts)

Renders the Popup.

Members Details

defaults: Object

The Popup default properties, with the properties applied during the template render.

Properties:
Name Default Value Description
title : String Component Error

Title of the Error message

desc : String Error processing component

The Error message

Source: dashboard/Popups.js, line 202

template: String

The Mustache template of the Error Notification Popup.

It has a title and description. The default values for each of the template variables are stored in defaults object.

Source: dashboard/Popups.js, line 187

Code
<div class='cdfNotification component {{#isSmallComponent}}small{{/isSmallComponent}}>
 <div class='cdfNotificationBody'>
 <div class='cdfNotificationImg'>&nbsp;</div>
 <div class='cdfNotificationTitle' title='{{title}}'>{{{title}}}</div>
 <div class='cdfNotificationDesc' title='{{desc}}'>{{{desc}}}</div>
 </div>
</div>

Methods Details

render(ph, newOpts)

Renders the Popup based on the object containing the properties to apply to the Mustache template.

If the component has a width smaller than 300, the css class small is added.

Source: dashboard/Popups.js, line 219

Parameters:
Name Default Value Summary
ph : jQuery | Selector

The DOM Element or the jQuery Selector. This is the container which will hold the content of the popup.

newOpts : Object
 
Optional

Options object used to extend the defaults object. This is used to assign values to the properties that define the content of the component.