Hello, Team!
I have noticed that the record config works for Container (meaning it populates field values based on record), but not for Panel. Is this expected? Panel extends Container and I guess it should work the same.
Sample code:
const record = new Model({
firstName: 'John',
lastName: 'Smith',
});
const items = {
firstName: {
type: 'textfield',
name: 'firstName',
label: 'First Name',
},
lastName: {
type: 'textfield',
name: 'lastName',
label: 'Last Name',
},
};
new Panel({
appendTo: document.body,
record,
items,
});
new Container({
appendTo: document.body,
record,
items,
});