fieldset: make component name configurable
This commit is contained in:
parent
80626c3d01
commit
7bba4a56b0
1 changed files with 2 additions and 0 deletions
|
@ -49,6 +49,7 @@ const appdata = {
|
||||||
|
|
||||||
function Data(name: string): object {
|
function Data(name: string): object {
|
||||||
const comp = {
|
const comp = {
|
||||||
|
name: name,
|
||||||
data: {},
|
data: {},
|
||||||
save
|
save
|
||||||
}
|
}
|
||||||
|
@ -75,6 +76,7 @@ function handle(msg) {
|
||||||
const data = JSON.parse(msg.payload)
|
const data = JSON.parse(msg.payload)
|
||||||
const [ domain, action, class_, item ] = msg.path.split('/')
|
const [ domain, action, class_, item ] = msg.path.split('/')
|
||||||
//console.log('msgbase: ', domain, action, class_, item)
|
//console.log('msgbase: ', domain, action, class_, item)
|
||||||
|
// TODO: check message parts (using default values), select handler fct
|
||||||
Object.assign(this.components[class_].data, data)
|
Object.assign(this.components[class_].data, data)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue