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