Evaluate Sellect2 cell options properly [pgadmin4] - Mailing list pgadmin-hackers

From Harshal Dhumal
Subject Evaluate Sellect2 cell options properly [pgadmin4]
Date
Msg-id CAFiP3vzJ4_NWygH8X_iPeoUEr99RkMy=t1iNFSH0juHngf9_1w@mail.gmail.com
Whole thread Raw
Responses Re: Evaluate Sellect2 cell options properly [pgadmin4]  (Ashesh Vashi <ashesh.vashi@enterprisedb.com>)
List pgadmin-hackers
Hi,

There are two ways we can provide options for select2 cell either by extending select2 cell with "optionValues" array or by passing "options" (function or array) in column definition.

Generally, if we are passing "optionValues" to select2 cell then we should not look for "options" in column definition but still we were looking for "options". This was causing javascript code to break if "options" were not passed in column definition.

Error fixed:

TypeError: this.column.get(...) is not a function
(this.column.get('options'))(this) :





-- 
Harshal Dhumal
Software Engineer

EnterpriseDB India: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
Attachment

pgadmin-hackers by date:

Previous
From: Sandeep Thakkar
Date:
Subject: Re: Patch for pgAdmin4 RPM package
Next
From: Ashesh Vashi
Date:
Subject: pgAdmin 4 commit: Proper evaluation of the optionsValues in the Backgri