handsontable - Get column number from column name -


is there method column number column name?

i can retrieve column name, , need column number getcellmeta.

thanks

made function solved problem:

function getcolfromname(name) {     var n_cols  =   $editortablecontainer.handsontable('countcols');     var       =   1;           (i=1; i<=n_cols; i++)     {         if (name.tolowercase() == $editortablecontainer.handsontable('getcolheader', i).tolowercase()) {             return i;         }     }     return -1; //return -1 if nothing can found } 

Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -