Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

namedItems does not work with up.namedItems when used at items level in cellMenu #8805

Open
ghulamghousdev opened this issue Mar 13, 2024 · 0 comments
Labels
bug Something isn't working forum Issues from forum OEM OEM customer

Comments

@ghulamghousdev
Copy link
Member

Forum post

  1. use this code:
new Panel({
    appendTo : 'container',
    title    : 'Panel Title',
    height   : 400,
    layout   : 'fit',
    namedItems : {
                        magicButton : {
                            text : 'Magic Button'
                        },
                        removeRow : {
                            text : 'removeIt'
                        }
                    },
    items    : {
        grid : {
            type     : 'grid',
            columns  : [{ field : 'name', text : 'Name' }],
            features : {
                rowCopyPaste : false,
                cellMenu     : {
                    namedItems: 'up.namedItems',
                    items : {
                        magicButton : true,
                        removeRow   : false
                    }
                }
            },
            data : [
                { id : 1, name : 'First' }
            ]
        }
    }
});
  1. See in the console that it throws error
Screenshot 2024-03-13 at 8 36 43 PM
@ghulamghousdev ghulamghousdev added bug Something isn't working forum Issues from forum OEM OEM customer labels Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working forum Issues from forum OEM OEM customer
Projects
None yet
Development

No branches or pull requests

1 participant