dashboard解析
module.factory('SavedDashboard', function (courier) {
_.class(SavedDashboard).inherits(courier.SavedObject);
function SavedDashboard(id) {
courier.SavedObject.call(this, {
type: SavedDashboard.type,
mapping: SavedDashboard.mapping,
searchSource: SavedDashboard.searchsource,
id: id,
defaults: {
title: 'New Dashboard',
hits: 0,
description: '',
panelsJSON: '[]',
version: 1,
timeRestore: false,
timeTo: undefined,
timeFrom: undefined
},
clearSavedIndexPattern: true
});
}Last updated