Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Contains a dictionary with keys being the template file names, and values the functions which will ensure the CSS is in the document for the lifecycle of the widget (and will be unloaded afterwards).

DISABLE_FULL_GRID

widget.DISABLE_FULL_GRID (default: false)

Controls whether the Full Grid functionality should be supported by the custom widget. When set to a true value, the expanding button will not be shown on the widget.

expanded

widget.expanded (default: false)

Contains the expanded state of the widget (true / false) if the Full Grid functionality has been turned on. Gets passed automatically to the template under the same name.

renderContent()

widget.renderContent(/* no arguments */)

...

Code Block
languagejs
return Widgets.FacetsTable.extend({
    customEvents: {
        'click tr': 'onRowClicked',
    },
 
    onRowClicked: function () {
        this.dashboard.store.set({'additionalInfo': true});
    },
});


Note

This does not currently work. Instead, use the _.extend pattern with the events property:

Code Block
return Widgets.FacetsTable.extend({
    events: _.extend(Widgets.FacetsTable.prototype.events, {
        'click tr': 'onRowClicked',
    },

    onRowClicked: function () {
        this.dashboard.store.set({'additionalInfo': true});
    },
});



onStoreChange()

widget.onStoreChange(model, options)    

Status
colourBlue
titleExtend

...