GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • @maxgraph/core

This view

  • Original page
  • New address

GeezerVison is showing maxgraph.github.io — MaxForm | @maxgraph/core

  • MaxForm

Class MaxForm

A simple class for creating HTML forms.

  • Defined in gui/MaxForm.ts:30
Index

Constructors

constructor

Properties

body table

Methods

addButtons addCheckbox addCombo addField addOption addText addTextarea getTable

Constructors

constructor

  • new MaxForm(className: string): MaxForm

    Parameters

    • className: string

    Returns MaxForm

    • Defined in gui/MaxForm.ts:31

Properties

body

body: HTMLElement

Holds the DOM node that represents the tbody (table body). New rows can be added to this object using DOM API.

  • Defined in gui/MaxForm.ts:48

table

table: HTMLTableElement

Holds the DOM node that represents the table.

  • Defined in gui/MaxForm.ts:42

Methods

addButtons

  • addButtons(okFunct: Function, cancelFunct: Function): void

    Helper method to add an OK and Cancel button using the respective functions.

    Parameters

    • okFunct: Function
    • cancelFunct: Function

    Returns void

    • Defined in gui/MaxForm.ts:61

addCheckbox

  • addCheckbox(name: string, value: boolean): HTMLInputElement

    Adds a checkbox for the given name and value and returns the textfield.

    Parameters

    • name: string
    • value: boolean

    Returns HTMLInputElement

    • Defined in gui/MaxForm.ts:103

addCombo

  • addCombo(name: string, isMultiSelect: boolean, size?: number): HTMLSelectElement

    Adds a combo for the given name and returns the combo.

    Parameters

    • name: string
    • isMultiSelect: boolean
    • Optionalsize: number

    Returns HTMLSelectElement

    • Defined in gui/MaxForm.ts:134

addField

  • addField(name: string, input: Element): Element

    Adds a new row with the name and the input field in two columns and returns the given input.

    Parameters

    • name: string
    • input: Element

    Returns Element

    • Defined in gui/MaxForm.ts:168

addOption

  • addOption(
        combo: HTMLElement,
        label: string,
        value: any,
        isSelected?: boolean,
    ): void

    Adds an option for the given label to the specified combo.

    Parameters

    • combo: HTMLElement
    • label: string
    • value: any
    • OptionalisSelected: boolean

    Returns void

    • Defined in gui/MaxForm.ts:151

addText

  • addText(name: string, value: any, type?: string): HTMLInputElement

    Adds an input for the given name, type and value and returns it.

    Parameters

    • name: string
    • value: any
    • type: string = 'text'

    Returns HTMLInputElement

    • Defined in gui/MaxForm.ts:92

addTextarea

  • addTextarea(name: string, value: string, rows: number): HTMLTextAreaElement

    Adds a textarea for the given name and value and returns the textarea.

    Parameters

    • name: string
    • value: string
    • rows: number

    Returns HTMLTextAreaElement

    • Defined in gui/MaxForm.ts:118

getTable

  • getTable(): HTMLTableElement

    Returns the table that contains this form.

    Returns HTMLTableElement

    • Defined in gui/MaxForm.ts:53

Settings

Member Visibility
  • Protected
  • Inherited
Theme

On This Page

Constructors
constructor
Properties
bodytable
Methods
addButtonsaddCheckboxaddComboaddFieldaddOptionaddTextaddTextareagetTable
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.