====== History Edit ====== Edit control, with functionality to edit single line text and history of previous values, entered in sessions before. {{ :scripting:dialogs:history_edit.png?300&direct |History Edit example}} ===== Properties ===== ^ Property ^ Default Value ^ Description ^ | **id** | empty | id (name) of the script data object associated with control | | **text** | empty | initial text of the control. Will be taken if no variable is bound (variable in dialog storage with name corresponding to //id// property) | | **align** | stretched | [[scripting:dialogs:align|Alignment]] of the control | | **style** | none | [[scripting:dialogs:edit#Styles|Styles]] of the edit control (can be combined) | | **required** | false | required property of the control (if control is initial, "positive" buttons will be disabled) | | **minwidth** | 0 | Minimum width, in characters, of the edit box control | | **cuebanner** | empty | Prompt shown in control background if no text is entered | | **group** | empty | ID of the history group to persist | | **autocomplete** | empty | [[scripting:dialogs:autocomplete|Autocomplete]] mode | ===== Styles ===== ^ Style ^ Description ^ | **none** | Default mode | | **lowercase** | Characters are auto converted to lower case | | **uppercase** | Characters are auto converted to UPPER case | ===== Example ===== var dialog_template = '@ \ \ \ \ \ \ \ @'; dialog(dialog_template);