public inbox for [email protected]
help / color / mirror / Atom feedFrom: Harshal Dhumal <[email protected]>
To: [email protected]
Subject: Re: New mechanism in backgrid to render different types of cells in same column [pgAdmin4]
Date: Tue, 19 Jan 2016 00:42:30 +0530
Message-ID: <CAFiP3vzkf6pis7uUjBLKa=nU1MN1AWFr-8xjoBmZChMrJhbZ_Q@mail.gmail.com> (raw)
In-Reply-To: <CAFiP3vz0Q0rocpPcYVcHwu3MYWXWpzGUTOS3vVSC-XfLLM6aKg@mail.gmail.com>
References: <CAFiP3vz0Q0rocpPcYVcHwu3MYWXWpzGUTOS3vVSC-XfLLM6aKg@mail.gmail.com>
List-Unsubscribe: <mailto:[email protected]?body=unsub%20pgadmin-hackers>
+
Also fixed some minor issues related to Unique column functionality in
Variable control in same patch.
--
*Harshal Dhumal*
*Software Engineer *
EenterpriseDB <http://www.enterprisedb.com;
On Tue, Jan 19, 2016 at 12:37 AM, Harshal Dhumal <
[email protected]> wrote:
> Hi,
>
> This patch is replacement for our developed DynamicVariablecell.
>
> Now we can pass cellFunction in column schema to get appropriate cell
> class.
> User provided cellFunction must return valid cell class.
> cellFunction will be called with context (this) as column and model as
> argument.
>
> eg.:
>
> schema: [
> {id: 'name', label:'Name', type:'text', editable: false, cell: 'string'},
> {
> id: 'value', label:'Value', type: 'text', editable: true,
> cellFunction: function(model){
>
> if (isNaN(model.get(this.get('name')))) {
> return "string";
> } else {
> return Backgrid.NumberCell;
> }
> }
> },
> {id: 'database', label:'Database', type: 'text', editable: false},
> .
> .
> .
>
>
>
>
> --
> *Harshal Dhumal*
> *Software Engineer *
>
>
>
> EenterpriseDB <http://www.enterprisedb.com;
>
view thread (3+ messages) latest in thread
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected]
Subject: Re: New mechanism in backgrid to render different types of cells in same column [pgAdmin4]
In-Reply-To: <CAFiP3vzkf6pis7uUjBLKa=nU1MN1AWFr-8xjoBmZChMrJhbZ_Q@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox