API Docs for: 1.0.0
Show:

File: Resources/public/js/views/ez-trashbarview.js

  1. /*
  2. * Copyright (C) eZ Systems AS. All rights reserved.
  3. * For full copyright and license information view LICENSE file distributed with this source code.
  4. */
  5. YUI.add('ez-trashbarview', function (Y) {
  6. "use strict";
  7. /**
  8. * Provides the Trash Bar class
  9. *
  10. * @module ez-trashbarview
  11. */
  12. Y.namespace('eZ');
  13.  
  14. /**
  15. * The trash bar
  16. *
  17. * @namespace eZ
  18. * @class TrashBarView
  19. * @constructor
  20. * @extends eZ.BarView
  21. */
  22. Y.eZ.TrashBarView = Y.Base.create('trashBarView', Y.eZ.BarView, [], {
  23. }, {
  24. ATTRS: {
  25. /**
  26. * An array of {{#crossLink
  27. * "eZ.ButtonActionView"}}eZ.ButtonActionView{{/crossLink}}
  28. *
  29. * @attribute actionsList
  30. * @type Array
  31. */
  32. actionsList: {
  33. valueFn: function () {
  34. return [
  35. new Y.eZ.ButtonActionView({
  36. actionId: "minimizeTrashBar",
  37. disabled: false,
  38. label: Y.eZ.trans('minimize', {}, 'trash'),
  39. priority: 1000
  40. }),
  41. new Y.eZ.ButtonActionView({
  42. actionId: "restoreTrashItems",
  43. disabled: true,
  44. label: Y.eZ.trans('restore.selected', {}, 'trash'),
  45. priority: 800
  46. }),
  47. new Y.eZ.ButtonActionView({
  48. actionId: "emptyTrash",
  49. disabled: false,
  50. label: Y.eZ.trans('empty.trash', {}, 'trash'),
  51. priority: 10
  52. }),
  53. ];
  54. }
  55. },
  56. }
  57. });
  58. });
  59.