Variable control patch - Mailing list pgadmin-hackers

From Harshal Dhumal
Subject Variable control patch
Date
Msg-id CAFiP3vy4iZ_hiNhGJBYcZZnV-td=7K=hQLRgvKyrPHai0LSfzQ@mail.gmail.com
Whole thread Raw
List pgadmin-hackers
Hi,
Please find attached patch for Variable control.

Usage:
1] In variables tab
id: 'spcoptions', label: 'Variables', type: 'collection', group: "Variables",
model: pgAdmin.Browser.Node.VariableModel, control: 'variable-collection', mode: [ 'edit', 'create'],
canAdd: true, canDelete: true, uniqueCol : ['name'],
variableCol : 'name', url: "getvars",
2] In database tab
id: 'spcoptions', label: 'Variables', type: 'collection', group: "Variables",
model: pgAdmin.Browser.Node.VariableModel.extend({hasDatabase:true}), control: 'variable-collection', mode: [ 'edit', 'create'],
canAdd: true, canDelete: true, uniqueCol : ['name','database'],
variableCol : 'name', url: "getvars",

3] In Use roles tab
id: 'spcoptions', label: 'Variables', type: 'collection', group: "Variables",
model: pgAdmin.Browser.Node.VariableModel.extend({hasRole:true}), control: 'variable-collection', mode: [ 'edit', 'create'],
canAdd: true, canDelete: true, uniqueCol : ['name','role'],
variableCol : 'name', url: "getvars",


Attachment

pgadmin-hackers by date:

Previous
From: Harshal Dhumal
Date:
Subject: select2 cell and select2 backform control optionvalue issue fix
Next
From: Björn Harrtell
Date:
Subject: Re: ]GTK 3