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 18a175e87a
commit ae5bc4171f
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 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
}
} }