API documentation - Area 2 menu

Config Options Example

# Class: emlArea2Menu

Convert an specified screen area to a menu

## Config Options

Config Options Top
| pVts (pointer) (required) Pointer to the virtual terminal
| startLine (number) (optional) Start line number for area to convert. This option is only valid for layout = 'button'. Alternativ to this option is 'startText'.
| startColumn (number) (optional) Start column number for area to convert. This option is only valid for layout = 'button'. Alternativ to this option is 'startText'.
| endLine (number) (optional) End line number for area to convert. This option is only valid for layout = 'button'. Alternativ to this option is 'startText'.
| endColumn (number) (optional) End column number for area to convert. This option is only valid for layout = 'button'. Alternativ to this option is 'startText'.
| adjustLine (number) (optional) Adjust field top position up and down. The input -and output fields are postion absolute in the browser using 5250 line -and column postion. To move all fields in the area up, use negativ value and position value to move them down.
| adjustColumn (number) (optional) Adjust field left/right position. The input -and output fields are postion absolute in the browser using 5250 line -and column postion. To move all fields in the area to the left, use negativ value and position value to move them to the right.
| startText (array) (optional) Instead of start line, column, etc. You can specify an array of texts to search for on the 5250 display. This option is only valid for layout = 'button'. Alternativ to this option is 'startLine'. Ex. ["Select one of the following", "Something else"]
| endText (array) (optional) Instead of end line, column, etc. You can specify an array of texts to search for on the 5250 display, just like startText. This option is only valid for layout = 'button'. Alternativ to this option is 'endLine'. Ex. ["Type choice or command", "Something else"]
| columns (array) (optional) Specify column number for eash new column with menu items. (default to '') Ex. [2, 44]
| moreTextLine (number) (optional) Line number for more menu pages text. ex. More... or Bottom (default to endLin or endText minus 1)
| moreEndColumn (number) (optional) Column number for more menu pages text. ex. More... or Bottom (default to 73)
| moreText (string) (optional) Text for more menu pages. (default to More...). If this text is found in moreTextLine -and column, next page with menu items will also be converted. (default to "more...")
| layout (string) The layout type to be used making the menu. (default to 'simple') Valid type of layout: `simple` one-to-one conversion (clickEvent -and inputFieldNumber options can be specified) `button` Each menu line will be converted to clickable button (inputFieldNumber option can be specified)
| idAndTextDelimiter (string) (optional) Menu id and text string delimiter. (default to '.')
| clickEvent (string) (optional) Enable single or double click on menu items. Valid values: 'single' or 'double' (default to 'double').
| inputFieldNumber (number) (optional) The input field number to keep the selected menu item. The menu item id is automatic fill into this input field, and Enter is pressed, when a menu item is clicked.
| toolbar (boolean) (optional) Create top toolbar with f-keys not mentioned in option 'bottomKeys' Valid values: 'true' or 'false' (default to 'false').
| headerTextLine (number) (optional) Line number for explaning text above menu items. Only used with layout = 'button'. (default to line number for parameter 'startText')
| bottomKeys (array) (optional) Array with f-keys to keep in the bottom. This option is only used, if option 'toolbar' is set to 'true'. default to (["F3", "F12"]).
| warningForOption (array) (optional) Give warning when executing this options Ex. ["17", "20", "45"] (default to blank)
| commandLine (number) (required) Line number for command line
| commandTitleLine (number) (optional) Line number for command title
| commandTitleColumn (number) Column number for command title
| commandTitleLength (number) Length of command title
| collapsiable (boolean) Command line is collapsiable (default to false)
| ExtJs (mixed) (optional) All ExtJs config options (version 2.3) for a panel. Click here to view the ExtJs API documentation

## Example

Example Top
    emlAddMetaField ('{+
       xtype:"panel"+
       ,width:"100%"+
       ,height:600+
       ,border:false+
       ,buttonAlign:"left"+
       ,items:['+
          emlArea2Menu(
            pVts
            :'x:1+
             ,y:400+
             ,startLine:20+
             ,startColumn:1+
             ,endLine:23+
             ,endColumn:80'+
          )+
       ']+
     }');