MCPcopy Create free account
hub / github.com/PaulleDemon/PyUIBuilder / constructor

Method constructor

src/frameworks/customtk/widgets/input.js:11–30  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

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()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected