MCPcopy Create free account
hub / github.com/sshwsfc/xadmin / constructor

Method constructor

xadmin-dashboard/src/editor/fields/Fieldset.js:8–14  ·  view source on GitHub ↗
(props, context)

Source from the content-addressed store, hash-verified

6export default class Fieldset extends React.Component {
7
8 constructor(props, context) {
9 super(props, context)
10 const field = props.field
11 this.state = {
12 activeKey: field.schema.collapsed || field.collapsed ? [] : [ '1' ]
13 }
14 }
15
16 onChange = (key) => {
17 this.setState({ activeKey: key })

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected