| 12345678910111213141516171819202122232425262728293031323334353637 |
- ///<reference path="../../../headers/common.d.ts" />
- import _ from 'lodash';
- import config from 'app/core/config';
- import {coreModule} from 'app/core/core';
- // import VirtualScroll from 'virtual-scroll';
- // console.log(VirtualScroll);
- export class RowOptionsCtrl {
- row: any;
- dashboard: any;
- rowCtrl: any;
- fontSizes = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'];
- /** @ngInject */
- constructor(private $scope, private $timeout, private $rootScope) {
- this.row = this.rowCtrl.row;
- this.dashboard = this.rowCtrl.dashboard;
- this.row.titleSize = this.row.titleSize || 'h6';
- }
- }
- export function rowOptionsDirective() {
- return {
- restrict: 'E',
- templateUrl: 'public/app/features/dashboard/row/options.html',
- controller: RowOptionsCtrl,
- bindToController: true,
- controllerAs: 'ctrl',
- scope: {
- rowCtrl: "=",
- },
- };
- }
- coreModule.directive('dashRowOptions', rowOptionsDirective);
|