I have an object that looks like this:
StandardFormat({ HeaderFont: 'greentext2', HeaderLinkFont: 'bluelink3', Backcolor: 'Black', ... });
So far, I have a function that takes the following form:
FormatGrid(ID, HeaderFont, HeaderLinkFont, BackColor,...){}
All parameters are listed and must be specified in the call. I would like to do this:
FormatGrid(ID, Format){}
So I could write something like this:
FormatGrid('TopGrid', StandardFormat) ; and be able to send a grid identifier and any format object.
I am stuck. How do you combine the parameters?
Thanks for your suggestions.
source share