| From: | Harshal Dhumal <harshal(dot)dhumal(at)enterprisedb(dot)com> |
|---|---|
| To: | pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org> |
| Subject: | Control for selecting multiple columns [pgadmin4] |
| Date: | 2016-03-08 07:34:01 |
| Message-ID: | CAFiP3vz+Da-8=19qfhpN1ikYhb08-QC7YpiLghq7Zj7AsVMnPA@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgadmin-hackers |
Hi,
PFA backform control for selecting multiple columns.(This control depends
on column node.)
Usage:
{
id: 'columns', label: '{{ _('Columns') }}',
type: 'collection', group: '{{ _('Definition') }}', editable:true,
canDelete: true, canAdd: true, control: Backform.MultiColumnSelectControl,
deps: ['index'], node: 'column',
model: pgBrowser.Node.Model.extend({
keys: ['column'],
defaults: {
column: undefined
}
})
}
Note: When using this control model should have *column* attribute. And
node property should be *column*.
--
*Harshal Dhumal*
*Software Engineer *
EenterpriseDB <http://www.enterprisedb.com>
| Attachment | Content-Type | Size |
|---|---|---|
| multiSelectColumnControl.patch | text/x-patch | 4.8 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Surinder Kumar | 2016-03-08 10:00:05 | Re: [pgAdmin4] [Patch]: Grant Wizard |
| Previous Message | Surinder Kumar | 2016-03-08 05:14:58 | Re: [pgAdmin4] [Patch]: Grant Wizard |