Skip to content

Instantly share code, notes, and snippets.

@sdewitti
Created February 20, 2022 15:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sdewitti/c42a51e9ba768ca59ec1509ea9cf0392 to your computer and use it in GitHub Desktop.
Save sdewitti/c42a51e9ba768ca59ec1509ea9cf0392 to your computer and use it in GitHub Desktop.
$col = array();
$col["title"] = "Game Type"; // caption of column
$col["name"] = "gametype"; // grid column name, must be exactly same as returned column-name from sql (tablefield or field-alias)
$col["edittype"] = "select";
$col["editoptions"] = array("value"=>'p:pinball;v:Arcade;c:Custom');
$cols[] = $col
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment