(props)
| 9 | static displayName = "Entry" |
| 10 | |
| 11 | constructor(props) { |
| 12 | super(props) |
| 13 | |
| 14 | this.state = { |
| 15 | ...this.state, |
| 16 | size: { width: 120, height: 40 }, |
| 17 | widgetName: "Entry", |
| 18 | attrs: { |
| 19 | ...this.state.attrs, |
| 20 | placeHolder: { |
| 21 | label: "PlaceHolder", |
| 22 | tool: Tools.INPUT, // the tool to display, can be either HTML ELement or a constant string |
| 23 | toolProps: {placeholder: "text", maxLength: 100}, |
| 24 | value: "placeholder text", |
| 25 | onChange: (value) => this.setAttrValue("placeHolder", value) |
| 26 | } |
| 27 | |
| 28 | } |
| 29 | } |
| 30 | } |
| 31 | |
| 32 | componentDidMount(){ |
| 33 | super.componentDidMount() |
nothing calls this directly
no outgoing calls
no test coverage detected