|
Config Options
|
|
|---|---|
| pVts (pointer) (required) Pointer to the virtual terminal | |
| optionStartLine (number) (required for right-click menu) First line number for option description. Ex. line number for following text: 'Type options, press Enter'. | |
| optionEndLine (number) Last line number for option description. (default to optionStartLine) | |
| alternativeOptions (string) (optional) The system will alway search for digits option values (ex. 2=Change, etc.) With this option, you can specify alternative options (ex. P=Print). Ex. "A, B, C". String seperated with comma. | |
| rightClickMenu (array) Array with right click menu for the grid (default to ''). Each element (object)
Ex. rightClickMenu:[+ | |
| moreOptionKey (string) Function key for more options. ex. F23 (default to ' ') Will be pressed to find more options. | |
| optionFieldKey (string) Function key for executing options. (default to 'ENTER') Will be pressed using right click menu. | |
| columnHeaderStartLine (number) (required for grid) First line number for column header | |
| columnHeaderEndLine (number) Last line number for column header (default to columnHeaderStart) | |
| columns (array) (optional) If not specified, system will try to find the columns separated by blanks. But if the subfile is empty, the system can have difficalities finding the columns. | |
| columnHeader (array) (optional) Title for the columns | |
| extraColumns (array) Array with extra columns for the grid (default to ''). Each element (object)
Ex. extraColumns:[{+ | |
| quickOptionLine (number) (optional) If specified an extra line is added at the top of the grid, for quick entering of option and key field(s) | |
| subfileDataStartLine (number) (required for grid) First line number for subfile data, typical just after columnHeaderEndLine | |
| subfileDataEndLine (number) Last line number for subfile data (default to subfileDataStartLine) | |
| subfileEndLine (number) Line number for subfile end text. ex. More... or Bottom (default to subfileDataEndLine + 1) | |
| subfileEndColumn (number) Column number for subfile end text. ex. More... or Bottom (default to 73) | |
| subfileMoreText (string) Text for more subfile pages. (default to More...). If this text is found in subfileEndLine and column, ROLLDOWN is valid | |
| subfileBottomText (string) Text for last subfile page. (default to Bottom). If this text is found subfileEndLine and column, ROLLDOWN is NOT valid | |
| subfilePages (number) Number of subfile pages to convert to grid (default to 1). | |
| showOptionField (boolean) Show column with option field (default to false). | |
| optionFieldColumn (number) (optional) If not specified, system will try to find the column number for option field. But it is not possible, if the subfile is empty. | |
| optionFieldLength (number) (optional) If not specified, system will try to find the length off the option field. But it is not possible, if the subfile is empty. (default to 1). | |
| toolbar (boolean) Show toolbar over the grid (default to true). If true, system will automatic add 'previous' -and 'next page', if toolbarButtons is not specified. | |
| toolbarButtons (array) Array with buttons to add the toolbar (default to ''). Each element (object)
Ex. toolbarButtons:[+ | |
| toolbarFields (array) Array with fields for the toolbar (default to ''). Each element (object)
Ex. toolbarFields:[+ | |
| bottomKeys (array) (optional) Array with f-keys to keep in the bottom. If option 'toolbarButtons' is left blank, the rest of the f-keys are automatic move to top toolbar, if option 'toolbar' is set to 'true'. default to (["F3", "F12"]). | |
| defaultOption (string) (optional) string of option, which will become default option. Ex. "2,5,1" | |
| ExtJs (mixed) (optional) All ExtJs config options (version 2.3) for a gridpanel. Click here to view the ExtJs API documentation | |
|
Example
|
|
|---|---|
|
|
|
Result
|
|
|---|---|
|
|