Add customProps function to screen component for building autoscreens
This commit is contained in:
parent
15c824e19e
commit
8f1f621072
|
@ -59,4 +59,11 @@ export class Screen extends BaseStructure {
|
||||||
this._json.props._instanceName = name
|
this._json.props._instanceName = name
|
||||||
return this
|
return this
|
||||||
}
|
}
|
||||||
|
|
||||||
|
customProps(props) {
|
||||||
|
for (let key of Object.keys(props)) {
|
||||||
|
this._json.props[key] = props[key]
|
||||||
|
}
|
||||||
|
return this
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue