Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1alvPU-00087r-JZ for pgadmin-hackers@arkaria.postgresql.org; Fri, 01 Apr 2016 09:30:32 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1alvPT-0007F6-U6 for pgadmin-hackers@arkaria.postgresql.org; Fri, 01 Apr 2016 09:30:31 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1alvPF-0006z2-2l for pgadmin-hackers@postgresql.org; Fri, 01 Apr 2016 09:30:17 +0000 Received: from mail-io0-x236.google.com ([2607:f8b0:4001:c06::236]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1alvPB-0004db-Ks for pgadmin-hackers@postgresql.org; Fri, 01 Apr 2016 09:30:15 +0000 Received: by mail-io0-x236.google.com with SMTP id e3so145232289ioa.1 for ; Fri, 01 Apr 2016 02:30:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enterprisedb-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=oNv84G0iw3l83V7OfLqqwS9SOlsGxZZRUeviFR1bBL8=; b=lTnHPW89C/ESIWXgZWDs4GiKfC7thtV9LpynnWZlRXWAifcNcYsIj9S2+FfKsZWF+0 0P76/+JY5idITOGffJ2w+q0MAHaHPjDiTBeAHc0Wzfn3zuRYZ9QpUIdG5h2T0oZM364m Vv5ue9Bas6lq102DWyR3KKK2iUgWNjJpGy3mk+uqCpB6TPGOE+6UKJ6f0UL0UpaSfBAh KvmPSDQskHMNlvB/imepKE07e1fvOtsQfITme6lY782Lq7OoSIrAe2/vnsEpwkAmv9Og X0jBCK5NfwvYDOUNwdfYCxA3n4WeOqu9CSeRWyhVh9VQucrGjtXuS9pm4RsnuPuvK7uH nwWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=oNv84G0iw3l83V7OfLqqwS9SOlsGxZZRUeviFR1bBL8=; b=Tcxx/JMiEf7Vj+Pn0ZK9eQMzZYaaBNOPl3OwFoad9qTLycvGySTbNsuZrFwR0Vld3l IuNpAfI7PN8dlD43c67qMJC0K97SyOIhyiajqbCHmA4QOc6yvBsYvdrvLYF/6AK77j2Z dytYjZxM6e86f5mMcC0n1sa7cZ4xX8colqOJONOFlwdsMlkaXIsrR94WmSh4IgG450Qq 9iNYWUMzmz8pwCqPUu/Xg2rEQpYYZfHGN5o0qCFhPgLpJ5EyeQKe51DFRbwNJlZOn5wQ zkY8yR8jMc4CVtXN3jlav8No6E5GoZIY8mcbN8xuzOnfBGMDCV25hhVOULqkZCCoh7kE F58A== X-Gm-Message-State: AD7BkJL+HbL90+GLsJYbFRoW2v8+2dEWn587Vaecg3xB+cpd79jwZQm3rTBOgDqt/c/QukaFiCFYunXziyajdoOi X-Received: by 10.107.156.193 with SMTP id f184mr3221846ioe.117.1459503012380; Fri, 01 Apr 2016 02:30:12 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.39.5 with HTTP; Fri, 1 Apr 2016 02:29:52 -0700 (PDT) In-Reply-To: References: From: Ashesh Vashi Date: Fri, 1 Apr 2016 14:59:52 +0530 Message-ID: Subject: Re: [pgAdmin4][Patch]: Backgrid StringDepsCell To: Khushboo Vashi Cc: pgadmin-hackers Content-Type: multipart/alternative; boundary=001a1140cd389a6484052f690613 X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgadmin-hackers Precedence: bulk Sender: pgadmin-hackers-owner@postgresql.org --001a1140cd389a6484052f690613 Content-Type: text/plain; charset=UTF-8 Hi Khushboo, I am reluctant to use this code as it is. I would prefer you create just helper functions (i.e. initialize, remove) for the dependents in Backgrid.Cell, and then use them directly from the different cell itself. Because - this functionality limits us to us only with the string type. Anyway - we will be using the dependent functionality for very attributes. You can extend them directly in the Node's model (schema). -- Thanks & Regards, Ashesh Vashi EnterpriseDB INDIA: Enterprise PostgreSQL Company *http://www.linkedin.com/in/asheshvashi* On Wed, Mar 30, 2016 at 6:39 PM, Khushboo Vashi < khushboo.vashi@enterprisedb.com> wrote: > Hi, > > Please find the attached patch for the Backgrid *StringDepsCell.* > > The *StringDepsCell* displays HTML escaped strings and accepts anything typed in. > Also, Listen to the dependent fields. > > > Usage of the Backgrid Cell: > > If the Precision cell is dependent on the Datatype then: > > { > id: 'precision', label:'{{ _('Precision') }}', type: 'test' > cell: *Backgrid.Extension.StringDepsCell*, deps: ['datatype'] > > } > > > Thanks, > Khushboo > > > > -- > Sent via pgadmin-hackers mailing list (pgadmin-hackers@postgresql.org) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgadmin-hackers > > --001a1140cd389a6484052f690613 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi Khushboo,

I am reluctant to use this= code as it is.
I would prefer you create just helper functions (= i.e. initialize, remove) for the dependents in Backgrid.Cell, and then use = them directly from the different cell itself.
Because - this functionali= ty limits us to us only with the string type.

Anyw= ay - we will be using the dependent functionality for very attributes.


You can extend them directly in the Nod= e's model (schema). =C2=A0=C2=A0
=

--

Thanks & Re= gards,

Ashesh Vashi
EnterpriseDB INDIA: Enterprise P= ostgreSQL Company

<= br>

<= a href=3D"http://www.linkedin.com/in/asheshvashi" target=3D"_blank">http= ://www.linkedin.com/in/asheshvashi


On Wed, Mar 30, 2016 at 6:39 PM, Khushboo Va= shi <khushboo.vashi@enterprisedb.com> wrote:
Hi,

Please= find the attached patch for the Backgrid StringDepsCell.
T=
he StringDepsCell displays HTML escaped strings and accepts anything=
 typed in.
Also, Listen to the dependent fields.
=
Usage of the Bac= kgrid Cell:
If the Precision cell is dependent on the Datatype then:<= br>
{
id: 'precision', label:'{{ _('Precision') = }}', type: 'test'
cell: Backgrid.Extension.StringDepsCe= ll, deps: ['datatype']<= /font>
}

Thanks,
Khu= shboo=C2=A0



--
Sent via pgadmin-hackers mailing list (pgadmin-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-hackers=


--001a1140cd389a6484052f690613--