123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209 |
- const labelWidth = 80
- export const windows = {
- modal: true,
- width: 900,
- height: 600,
- maximizable: true,
- constrain: true,
- shadow: false,
- // manageHeight: true,
- // draggable: true,
- // scrollable: true,
- }
- export const date = {
- labelAlign: 'right',
- labelWidth,
- }
- export const combo = {
- labelAlign: 'right',
- labelWidth,
- valueField: 'id',
- displayField: 'text',
- autoLoad: true,
- mode: 'local',
- forceSelection: true,
- triggerAction: 'all',
- enableKeyEvents: true,
- }
- export const comboGrid = {
- selectOnTab: true,
- pickerHeight: 500,
- pickerWidth: 850,
- editEnable: null,
- }
- export const comboGridPicker = {
- xtype: 'yvgrid',
- layout: 'fit',
- selModel: {
- selType: 'rowmodel',
- mode: 'SINGLE'
- },
- }
- export const comboGridMulti = {
- selectOnTab: true,
- pickerHeight: 500,
- pickerWidth: 850,
- editEnable: null,
- splitChar: ',',
- displayField: 'text',
- valueField: 'id',
- autoLoad: true,
- }
- export const comboGridMultiPicker = {
- selType: 'checkboxmodel',
- selModel: {
- type: 'checkboxmodel',
- checkOnly: false
- },
- }
- export const numberfield = {
- labelAlign: 'right',
- labelWidth,
- }
- export const checkbox = {
- labelAlign: 'right',
- labelWidth,
- checkedValue: true,
- uncheckedValue: false,
- }
- export const checkboxgroup = {
- labelAlign: 'right',
- labelWidth,
- }
- export const radio = {
- labelAlign: 'right',
- labelWidth,
- }
- export const radiogroup = {
- labelAlign: 'right',
- labelWidth,
- simpleValue: true,
- layout: 'hbox',
- defaults: {
- xtype: 'radio',
- name: 'type',
- margin: '0 15 0 0'
- },
- }
- export const form = {
- margin: '5 5 0 0',
- border: false,
- defaults: {
- margin: '0 0 5 0',
- border: false,
- },
- }
- export const column = {
- filter: {type: 'string'},
- }
- export const grid = {
- border: true,
- columnLines: true,
- rowLines: true,
- plugins: {
- cellediting: {
- clicksToEdit: 1
- },
- gridfilters: true
- },
- multiColumnSort: true,
- viewConfig: {
- enableTextSelection: true,
- sortOnClick: false,
- },
- selModel: {
- type: 'checkboxmodel',
- checkOnly: false
- },
- pagination: true,
- pageSize: 50,
- pageSizeOption: ['20', '50', '100', '200', '300'],
- hideFootbar: false,
- hideRefresh: false,
- hideExport: false,
- hideAutoSize: false,
- hideClearFilter: false,
- autoLoad: true,
- remoteSort: false,
- remoteFilter: false,
- enableLocking: true,
- enableColumnMove: true,
- enableColumnHide: true,
- enableColumnResize: true,
- hidden: false,
- disabled: false,
- }
- export const fieldContainer = {
- labelAlign: 'right',
- labelWidth,
- layout: 'hbox',
- defaults: {
- flex: 1,
- }
- }
- export const tree = {
- autoLoad: true,
- hideFilter: false,
- hideToolbar: false,
- }
- export const search = {
- labelAlign: 'right',
- labelWidth,
- }
- export const text = {
- labelAlign: 'right',
- labelWidth,
- msgTarget: 'qtip',
- }
- export const toolbar = {
- overflowHandler: 'menu',
- }
- export const tbfill = {}
- export const tbseparator = {}
- export const button = {}
- export const fieldSet = {
- margin: '5 5 0 0',
- border: false,
- defaults: {
- margin: '0 0 5 0',
- border: false,
- },
- }
- export const panel = {}
- export const splitter = {}
- export const maintab = {}
- export const rows = {}
- export const cols = {
- defaults: {
- flex: 1
- },
- }
|