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
Post a Comment