function Row()

in grafana/row.js [25:46]


function Row(opts) {
    opts = opts || {};
    var self = this;

    var state = {
      title: 'New row',
      height: '250px',
      editable: true,
      collapse: false,
      panels: [],
      showTitle: true
    };

    this.state = xtend(state, opts);
    this.panels = [];

    if (opts.panels) {
        opts.panels.forEach(function addP(panel) {
            self.addPanel(panel);
        })
    }
}