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 AM10/15/12
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 PM10/15/12
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