help.ts 589 B

12345678910111213141516171819202122232425262728293031
  1. ///<reference path="../../../headers/common.d.ts" />
  2. import coreModule from '../../core_module';
  3. export class HelpCtrl {
  4. tabIndex: any;
  5. shortcuts: any;
  6. /** @ngInject */
  7. constructor(private $scope) {
  8. this.tabIndex = 0;
  9. this.shortcuts = {
  10. 'Global': [
  11. ]
  12. };
  13. }
  14. }
  15. export function helpModal() {
  16. return {
  17. restrict: 'E',
  18. templateUrl: 'public/app/core/components/help/help.html',
  19. controller: HelpCtrl,
  20. bindToController: true,
  21. transclude: true,
  22. controllerAs: 'ctrl',
  23. scope: {},
  24. };
  25. }
  26. coreModule.directive('helpModal', helpModal);