Hello, team!
We have a grid cell menu, and we want to specify its items based on namedItems specified as a query string, to inherit the value from an ancestor widget, but it does not seem to work. It throws an error. As this works for other cases, we expect it to work in this case too.
Here is a test case with the problem:
new Panel({
appendTo: document.body,
title: 'Panel Title',
height: 400,
layout: 'fit',
namedItems: {
magicButton: {
text: 'Magic Button',
},
},
items: {
grid: {
type: 'grid',
columns: [{ field: 'name', text: 'Name' }],
features: {
cellMenu: {
namedItems: 'up.namedItems',
items: {
magicButton: true,
},
},
},
data: [
{ id: 1, name: 'First' },
{ id: 2, name: 'Second' },
{ id: 3, name: 'Third' },
],
},
},
});