Constructors
constructor
- new MaxForm(className: string): MaxForm
Properties
table
table: HTMLTableElement
Methods
addButtons
- addButtons(okFunct: Function, cancelFunct: Function): void
Parameters
- okFunct: Function
- cancelFunct: Function
Returns void
addCheckbox
- addCheckbox(name: string, value: boolean): HTMLInputElement
Parameters
- name: string
- value: boolean
Returns HTMLInputElement
addCombo
- addCombo(name: string, isMultiSelect: boolean, size?: number): HTMLSelectElement
Parameters
- name: string
- isMultiSelect: boolean
Optional
size: number
Returns HTMLSelectElement
addField
- addField(name: string, input: Element): Element
Parameters
- name: string
- input: Element
Returns Element
addOption
- addOption(
combo: HTMLElement,
label: string,
value: any,
isSelected?: boolean,
): void Parameters
- combo: HTMLElement
- label: string
- value: any
Optional
isSelected: boolean
Returns void
addText
- addText(name: string, value: any, type?: string): HTMLInputElement
Parameters
- name: string
- value: any
- type: string = 'text'
Returns HTMLInputElement
addTextarea
- addTextarea(name: string, value: string, rows: number): HTMLTextAreaElement
Parameters
- name: string
- value: string
- rows: number
Returns HTMLTextAreaElement
getTable
- getTable(): HTMLTableElement
Returns HTMLTableElement
A simple class for creating HTML forms.
MaxForm