Exemplo n.º 1
0
 def grid_config(self):
     data = Resource.grid_config(self)
     data['title'] = self.title
     data['tbar'] = [{
                      'text' : 'New',
                      'menu' : {
                                'items' : [{'xtype' : 'vault.open_form_dialog_button',
                                           'text' : 'New Asset',
                                           'dialogConfig' : self.new_dialog_config(self.id, type_='resources')
                                        },{'xtype' : 'vault.open_form_dialog_button',
                                           'text' : 'New Preview',
                                           'dialogConfig' : self.new_dialog_config(self.id, type_='previews')
                                        }]
                                }
                      }]
     data['storeParams'] = { 'parent_id' : self.id }
     return data