mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Introducing the infrastructure for colleciton of the subnodes listing,
creation, and editing within the properties panel infrastructure. We do use the backgrid.js for listing the subnode collection, and for editing/creating new object for the subnode, we do use the same infrastructure using the backform.
This commit is contained in:
committed by
Ashesh Vashi
parent
c53b57a013
commit
c1503ade47
@@ -32,8 +32,13 @@ function($, _, pgAdmin, Backbone) {
|
||||
name: null
|
||||
},
|
||||
schema: [
|
||||
{id: 'id', label: 'ID', type: 'int', group: null, mode: ['properties']},
|
||||
{id: 'name', label:'Name', type: 'text', group: null, mode: ['properties', 'edit', 'create']}
|
||||
{
|
||||
id: 'id', label: 'ID', type: 'int', group: null,
|
||||
mode: ['properties']
|
||||
},{
|
||||
id: 'name', label:'Name', type: 'text', group: null,
|
||||
mode: ['properties', 'edit', 'create']
|
||||
}
|
||||
],
|
||||
validate: function(attrs, options) {
|
||||
if (!this.isNew() && 'id' in this.changed) {
|
||||
|
||||
Reference in New Issue
Block a user