Re: Numeric control optionally allow null values [pgadmin4] - Mailing list pgadmin-hackers

From Harshal Dhumal
Subject Re: Numeric control optionally allow null values [pgadmin4]
Date
Msg-id CAFiP3vzvtqxJMpZeeaV4pd0p7CevcRRDfgDWuvu4cyHNThpJFQ@mail.gmail.com
Whole thread Raw
In response to Numeric control optionally allow null values [pgadmin4]  (Harshal Dhumal <harshal.dhumal@enterprisedb.com>)
Responses Re: Numeric control optionally allow null values [pgadmin4]
List pgadmin-hackers
Hi,

Please find attached patch for numeric and integer control with optionally null value support.

Usage:

1] Integer
id: 'fillfactor', label: '{{ _('Fill factor') }}', deps: ['index'],
type: 'int', group: '{{ _('Definition') }}', allowNull: true,

2] Numeric

id: 'fillfactor', label: '{{ _('Fill factor') }}', deps: ['index'],
type: 'numeric', group: '{{ _('Definition') }}', allowNull: true,





-- 
Harshal Dhumal
Software Engineer 




On Fri, Mar 4, 2016 at 10:55 AM, Harshal Dhumal <harshal.dhumal@enterprisedb.com> wrote:
Hi,


Please find attached patch for numeric control with optionally allow null values

Null values: undefined/empty string/null
By default numeric control value can not be null. Use flag allowNull: true to allow null values.

Usage:

id: 'fillfactor', label: '{{ _('Fill factor') }}', deps: ['index'],
type: 'numeric', group: '{{ _('Definition') }}', allowNull: true,


-- 
Harshal Dhumal
Software Engineer 




Attachment

pgadmin-hackers by date:

Previous
From: Harshal Dhumal
Date:
Subject: Numeric control optionally allow null values [pgadmin4]
Next
From: Murtuza Zabuawala
Date:
Subject: PATCH: Enhancement to backform controls [pgAdmin4]