This repository has been archived by the owner on May 3, 2022. It is now read-only.
/
ez-trashbarview.js
58 lines (57 loc) · 1.82 KB
/
ez-trashbarview.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
54
55
56
57
58
/*
* Copyright (C) eZ Systems AS. All rights reserved.
* For full copyright and license information view LICENSE file distributed with this source code.
*/
YUI.add('ez-trashbarview', function (Y) {
"use strict";
/**
* Provides the Trash Bar class
*
* @module ez-trashbarview
*/
Y.namespace('eZ');
/**
* The trash bar
*
* @namespace eZ
* @class TrashBarView
* @constructor
* @extends eZ.BarView
*/
Y.eZ.TrashBarView = Y.Base.create('trashBarView', Y.eZ.BarView, [], {
}, {
ATTRS: {
/**
* An array of {{#crossLink
* "eZ.ButtonActionView"}}eZ.ButtonActionView{{/crossLink}}
*
* @attribute actionsList
* @type Array
*/
actionsList: {
valueFn: function () {
return [
new Y.eZ.ButtonActionView({
actionId: "minimizeTrashBar",
disabled: false,
label: Y.eZ.trans('minimize', {}, 'trash'),
priority: 1000
}),
new Y.eZ.ButtonActionView({
actionId: "restoreTrashItems",
disabled: true,
label: Y.eZ.trans('restore.selected', {}, 'trash'),
priority: 800
}),
new Y.eZ.ButtonActionView({
actionId: "emptyTrash",
disabled: false,
label: Y.eZ.trans('empty.trash', {}, 'trash'),
priority: 10
}),
];
}
},
}
});
});