forked from ovh/manager
/
index.js
34 lines (28 loc) · 905 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/**
* @ngdoc overview
*
* @name actionsMenu
*
* @requires [pascalprecht.translate](https://github.com/angular-translate/angular-translate)
* @requires [ng-ovh-responsive-popover](https://github.com/ovh/manager/tree/master/packages/components/ng-ovh-responsive-popover)
*
* @description
* _An actions menu gives the opportunity to group a set of actions available for a specific context
* under a single menu._
*
* ## TODO
*
* - customizing page width ;
* - customizing open animation ;
* - actions with confirmation.
*/
import angular from 'angular';
import '@ovh-ux/ng-ovh-responsive-popover';
import directive from './directive';
import factory from './factory';
const moduleName = 'ngOvhActionsMenuItem';
angular
.module(moduleName, ['ngOvhResponsivePopover'])
.directive('actionsMenuItem', directive)
.factory('ActionsMenuItem', factory);
export default moduleName;