Groups
Groups
Sign in
Groups
Groups
SlickGrid
Conversations
About
Send feedback
Help
passing column ID to function called from header menu item
49 views
Skip to first unread message
Gianluca Bisceglie
unread,
Oct 15, 2012, 4:48:05 AM
10/15/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to slic...@googlegroups.com
How can I pass the id of the column from which I am clicking on a header menu item?
For example,
header: {
menu: {
items: [
{
iconImage: "../lib/slickgrid/images/arrow_right_peppermint.png",
title: "Title",
command: "functionToCall"
Can I do something like
command: "functionToCall(" + ColID + ")"
?
Thanks,
Gian
Michael Leibman
unread,
Oct 15, 2012, 5:05:53 PM
10/15/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to slic...@googlegroups.com
The column definition should be in the args of the event handler.
The command is not a JavaScript to execute - it is a string to pass to the handler.
Please see the examples.
Reply all
Reply to author
Forward
0 new messages