package.js 778 B

1234567891011121314151617181920212223242526
  1. MWF.Selector = new Class({
  2. Implements: [Options],
  3. options: {
  4. "count": 0,
  5. "title": "Select Person",
  6. "groups": [],
  7. "roles": [],
  8. "companys": [],
  9. "departments": [],
  10. "values": [],
  11. "names": []
  12. },
  13. initialize: function(container, options){
  14. MWF.xDesktop.requireApp("Selector", "Actions.RestActions", null, false);
  15. this.setOptions(options);
  16. this.container = container;
  17. var type = this.options.type.capitalize();
  18. if (type){
  19. MWF.xDesktop.requireApp("Selector", type, function(){
  20. this.selector = new MWF.xApplication.Selector[type](this.container, options);
  21. this.selector.load();
  22. }.bind(this));
  23. }
  24. }
  25. });