Guest User

Untitled

a guest
Dec 14th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. /**
  2. * Copyright © 2013-2017 Magento, Inc. All rights reserved.
  3. * See COPYING.txt for license details.
  4. */
  5. define([
  6. 'Magento_Ui/js/grid/paging/sizes'
  7. ], function (Sizes) {
  8. 'use strict';
  9.  
  10. return Sizes.extend({
  11. defaults: {
  12. excludedOptions: ['100', '200']
  13. },
  14.  
  15. /**
  16. * @override
  17. */
  18. initialize: function () {
  19. this._super();
  20.  
  21. this.excludedOptions.forEach(function (excludedOption) {
  22. delete this.options[excludedOption];
  23. }, this);
  24. this.updateArray();
  25.  
  26. return this;
  27. }
  28. });
  29. });
Add Comment
Please, Sign In to add comment