jquery.rsLiteGrid
Advanced tools
Comparing version
@@ -5,3 +5,3 @@ { | ||
"description": "Table with any number of columns and rows, with customized markup on each cell.", | ||
"version": "1.0.1", | ||
"version": "1.0.3", | ||
"homepage": "https://github.com/ruisoftware/jquery-rsLiteGrid", | ||
@@ -8,0 +8,0 @@ "author": { |
@@ -70,4 +70,3 @@ /** | ||
opts.cols.forEach(function (col) { | ||
var markup = typeof col.markup === "function" ? col.markup() : col.markup, | ||
$cellCtrl = $(markup || '<input type=\'text\'>'); | ||
var $cellCtrl = $(col.markup || '<input type=\'text\'>'); | ||
if (col.defaultValue !== undefined && col.defaultValue !== null) { | ||
@@ -406,9 +405,3 @@ if ($cellCtrl.is(DOM.elemsWithValAttr)) { | ||
// But if header is always ommited in every element of cols, then not a single <th> is ever created (and therefore <header> is not created as well). | ||
markup: '<input type="text">', // Control placed on this column. If ommited, then '<input type="text">' is used. Type: String or function(). | ||
// You can use a function to set a markup that changes according to the row index. Example: | ||
// markup: function () { | ||
// var name = getNewGroup(); // your own function that returns a unique name for each row | ||
// return '<input type="radio" name="' + name + '" value="male">Male' + | ||
// '<input type="radio" name="' + name + '" value="female">Female'; | ||
// } | ||
markup: '<input type="text">', // Control placed on this column. If ommited, then '<input type="text">' is used. Type: String. | ||
defaultValue: null, // Default value. It is used to determine whether the cell has been changed. | ||
@@ -415,0 +408,0 @@ tabStop: true // Whether this column's cells are focusable on keyboard (tab or arrow keys) navigation. If ommited, then true is used. Type: boolean. |
396248
-0.2%11069
-0.06%