Defaults.ts 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. const labelWidth = 80
  2. export const windows = {
  3. modal: true,
  4. width: 900,
  5. height: 600,
  6. maximizable: true,
  7. constrain: true,
  8. shadow: false,
  9. // manageHeight: true,
  10. // draggable: true,
  11. // scrollable: true,
  12. }
  13. export const date = {
  14. labelAlign: 'right',
  15. labelWidth,
  16. }
  17. export const combo = {
  18. labelAlign: 'right',
  19. labelWidth,
  20. valueField: 'id',
  21. displayField: 'text',
  22. autoLoad: true,
  23. mode: 'local',
  24. forceSelection: true,
  25. triggerAction: 'all',
  26. enableKeyEvents: true,
  27. }
  28. export const comboGrid = {
  29. selectOnTab: true,
  30. pickerHeight: 500,
  31. pickerWidth: 850,
  32. editEnable: null,
  33. }
  34. export const comboGridPicker = {
  35. xtype: 'yvgrid',
  36. layout: 'fit',
  37. selModel: {
  38. selType: 'rowmodel',
  39. mode: 'SINGLE'
  40. },
  41. }
  42. export const numberfield = {
  43. labelAlign: 'right',
  44. labelWidth,
  45. }
  46. export const checkbox = {
  47. labelAlign: 'right',
  48. labelWidth,
  49. checkedValue: true,
  50. uncheckedValue: false,
  51. }
  52. export const checkboxgroup = {
  53. labelAlign: 'right',
  54. labelWidth,
  55. }
  56. export const radio = {
  57. labelAlign: 'right',
  58. labelWidth,
  59. }
  60. export const radiogroup = {
  61. labelAlign: 'right',
  62. labelWidth,
  63. }
  64. export const form = {
  65. margin: '5 5 0 0',
  66. border: false,
  67. defaults: {
  68. margin: '0 0 5 0',
  69. border: false,
  70. },
  71. }
  72. export const grid = {
  73. border: true,
  74. columnLines: true,
  75. plugins: {
  76. cellediting: {
  77. clicksToEdit: 1
  78. },
  79. gridfilters: true
  80. },
  81. multiColumnSort: true,
  82. viewConfig: {
  83. enableTextSelection: true,
  84. sortOnClick: false,
  85. },
  86. selModel: {
  87. type: 'checkboxmodel',
  88. checkOnly: false
  89. },
  90. pagination: true,
  91. autoLoad: true,
  92. remoteSort: true,
  93. remoteFilter: true,
  94. enableLocking: true,
  95. enableColumnMove: true,
  96. enableColumnHide: true,
  97. }
  98. export const search = {
  99. labelAlign: 'right',
  100. labelWidth,
  101. }
  102. export const text = {
  103. labelAlign: 'right',
  104. labelWidth,
  105. msgTarget: 'side',
  106. }
  107. export const toolbar = {
  108. overflowHandler: 'menu',
  109. }
  110. export const tbfill = {}
  111. export const tbseparator = {}
  112. export const button = {}
  113. export const fieldSet = {
  114. margin: '5 5 0 0',
  115. border: false,
  116. defaults: {
  117. margin: '0 0 5 0',
  118. border: false,
  119. },
  120. }
  121. export const panel = {}
  122. export const splitter = {}
  123. export const maintab = {}
  124. export const rows = {}
  125. export const cols = {
  126. defaults: {
  127. flex: 1
  128. },
  129. }