FormControl.allowEdit Method

Determines whether the user can modify the contents of the control.

Syntax

public boolean allowEdit([boolean value])

Run On

Client

Parameters

  • value
    Type: boolean
    The value to assign to the allowEdit property.

Return Value

Type: boolean
true if the control can be modified; otherwise, false.

Remarks

If this property is set on a container control, modifications are disabled or enabled for all controls in the container.

Examples

The following example shows how to return and set the value of the allowEdit property.

// Return the value. 
info (strfmt("allowEdit: %1", this.allowEdit())); 
// Set the value. 
this.allowEdit(false);

See Also

FormControl Class

Event Method Sequences in Form Scenarios