partkeepr

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

FootprintCategoryStore.js (1135B)


      1 Ext.define('PartKeepr.data.store.FootprintCategoryStore', {
      2     extend: 'Ext.data.TreeStore',
      3 
      4     /**
      5      * The store ID to use
      6      */
      7     storeId: 'FootprintCategoryStore',
      8 
      9     /**
     10      * Don't sort remotely as this is a tree store
     11      */
     12     remoteSort: false,
     13 
     14     /**
     15      * Sort folders alphabetically
     16      */
     17     folderSort: true,
     18 
     19     /**
     20      * Show the root node by default
     21      */
     22     rootVisible: false,
     23 
     24     /**
     25      * Automatically load the store
     26      */
     27     autoLoad: true,
     28 
     29     /**
     30      * Sort by name ascending by default
     31      */
     32     sorters: [
     33         {
     34             property: 'name',
     35             direction: 'ASC'
     36         }
     37     ],
     38 
     39     /**
     40      * Virtual Root Node
     41      */
     42     root: {
     43         "@id": "@local-tree-root",
     44         "name": "virtual root - should not be visible"
     45     },
     46 
     47     /**
     48      * The model to use
     49      */
     50     model: "PartKeepr.FootprintBundle.Entity.FootprintCategory",
     51 
     52     proxy: {
     53         ignoreLoadId: '@local-tree-root',
     54         url: "/api/footprint_categories/getExtJSRootNode",
     55         type: "Hydra",
     56         appendId: false,
     57         reader: {
     58             type: 'tree'
     59         }
     60     }
     61 });