Files
pgadmin4/web/pgadmin/browser/server_groups/servers/static/js/options.ui.js

36 lines
963 B
JavaScript

/////////////////////////////////////////////////////////////
//
// pgAdmin 4 - PostgreSQL Tools
//
// Copyright (C) 2013 - 2021, The pgAdmin Development Team
// This software is released under the PostgreSQL Licence
//
//////////////////////////////////////////////////////////////
import gettext from 'sources/gettext';
import BaseUISchema from 'sources/SchemaView/base_schema.ui';
export default class OptionsSchema extends BaseUISchema {
constructor(optionID='option', valueID='value') {
super({
[optionID]: undefined,
[valueID]: undefined,
});
this.optionID = optionID;
this.valueID = valueID;
}
get baseFields() {
return [{
id: this.optionID, label: gettext('Option'),
type: 'text', editable: true, cell: 'text',
noEmpty: true, width: 220,
},
{
id: this.valueID, label: gettext('Value'),
type: 'text', editable: true, cell: 'text',
noEmpty: true, width: 220
}];
}
}