Manual Reference Source
public class | source

InputJson

Extends:

react~Component → InputJson

InputJson is a component providing text or rich editor for JSON-like data

Access

Stage.Basic.Form.Json

Usage

InputJson

<Form.Json name='port_conf' value={'{"webserver_port2":6,"webserver_port1":5}'} />

Static Member Summary

Static Public Members
public static

propTypes

Static Public Members

public static propTypes: * source

propTypes

Properties:

NameTypeAttributeDescription
name string

name of the field

value any
  • optional
  • default: "{}"

value of the field

error boolean
  • optional
  • default: false

is field invalid

onChange Function
  • optional
  • default: (function () {});

function to be called on value change