MEdit

From HTML5 Builder
Jump to: navigation, search

The MEdit component is a single-line input field where users can enter text.

Usage

Prevent Enter from Submitting the Form

When you hit the Enter key and the focus is on the MEdit control, the form page is submited by default. You can prevent this behavior associating the following code to the client-side OnKeyPress event of the control:

if(event.keyCode == 13)
{
    return false;
}

Client-side Features

DOM Elements

The component generates the following client-side DOM elements:

  • Wrapper (HTMLDivElement). Full web browser support. Access it with $("#ComponentName_outer").get()[0].
    • Main element (HTMLInputElement). Full web browser support. Access it with: $("#ComponentName").get()[0].

Client-side Events

Documented in the RPCL Reference.

Server-side Features

Properties, Methods and Events

Documented in the RPCL Reference.

Help Resources

Tutorials

See Also

  • Alternatives: Edit (web applications).