partkeepr

fork of partkeepr
git clone https://git.e1e0.net/partkeepr.git
Log | Files | Refs | Submodules | README | LICENSE

BarcodeScannerActionsStore.js (605B)


      1 Ext.define("PartKeepr.Data.store.BarcodeScannerActionsStore", {
      2     extend: "Ext.data.Store",
      3     fields: ["action", "name", "description"],
      4     constructor: function ()
      5     {
      6         this.callParent(arguments);
      7 
      8         var actions = PartKeepr.getApplication().getBarcodeScannerManager().getActions();
      9 
     10         for (var i = 0; i < actions.length; i++) {
     11             this.add({
     12                 "action": actions[i],
     13                 "name": Ext.ClassManager.get(actions[i]).actionName,
     14                 "description": Ext.ClassManager.get(actions[i]).actionDescription
     15             });
     16         }
     17 
     18     }
     19 
     20 });