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

Method constructor

src/frameworks/tkinter/widgets/input.js:86–104  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

84 static widgetType = "Text"
85
86 constructor(props) {
87 super(props)
88
89 this.state = {
90 ...this.state,
91 size: { width: 120, height: 80 },
92 attrs: {
93 ...this.state.attrs,
94 // placeHolder: {
95 // label: "PlaceHolder",
96 // tool: Tools.INPUT, // the tool to display, can be either HTML ELement or a constant string
97 // toolProps: {placeholder: "text", maxLength: 100},
98 // value: "placeholder text",
99 // onChange: (value) => this.setAttrValue("placeHolder", value)
100 // }
101
102 }
103 }
104 }
105
106 componentDidMount(){
107 super.componentDidMount()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected