Add customProps function to screen component for building autoscreens

This commit is contained in:
Andrew Kingston 2021-06-10 10:36:43 +01:00
parent 15c824e19e
commit 8f1f621072
1 changed files with 7 additions and 0 deletions

View File

@ -59,4 +59,11 @@ export class Screen extends BaseStructure {
this._json.props._instanceName = name
return this
}
customProps(props) {
for (let key of Object.keys(props)) {
this._json.props[key] = props[key]
}
return this
}
}