-
Notifications
You must be signed in to change notification settings - Fork 2
/
sequoia.constants.js
53 lines (47 loc) · 1.12 KB
/
sequoia.constants.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
(function() {
'use strict';
var buttons = {
root: 'Home',
edit: 'Edit',
select: 'Select',
deselect: 'Deselect',
goToSubitems: 'Go to subitems',
addSubitems: 'Add subitems',
addNode: 'Add node',
remove: 'Delete',
done: 'Done',
search: '›',
searchClear: '×',
showSelected: 'Show selected',
hideSelected: 'Hide selected',
deselectAll: 'Deselect all',
backToList: 'Back to list',
move: 'Move',
modalSelect: 'Select',
up: 'Up a level',
searchText: 'Search for an item by title'
};
var nodeTemplate = {
id: '_id',
nodes: 'nodes',
title: 'title'
};
var defaultOptions = {
allowSelect: true,
allowSearch: true,
canEdit: false,
inline: false,
buttons: {},
limit: 0
};
var sortableOptions = {
sort: true,
handle: '.sequoia-move-handle',
ghostClass: 'as-sortable-dragging'
};
angular.module('ngSequoia')
.constant('BUTTONS', buttons)
.constant('NODE_TEMPLATE', nodeTemplate)
.constant('DEFAULT_OPTIONS', defaultOptions)
.constant('SORTABLE_OPTIONS', sortableOptions);
})();