Add customProps function to screen component for building autoscreens
This commit is contained in:
parent
18a175e87a
commit
ae5bc4171f
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue