浏览代码

fix #2083(docs): add parameter to cellStyle

zhixin 9 年之前
父节点
当前提交
50fcf135e4

+ 3 - 2
docs/_i18n/en/documentation/column-options.md

@@ -188,7 +188,7 @@ The column options is defined in `jQuery.fn.bootstrapTable.columnDefaults`.
         value: the field value. <br>
         row: the row record data.<br>
         index: the row index. <br>
-        Example code: 
+        Example code:
         <code>&lt;th .. data-events="operateEvent"&gt;</code>
         <code>var operateEvents = {'click .like': function (e, value, row, index) {}};</code>
         </td>
@@ -224,9 +224,10 @@ The column options is defined in `jQuery.fn.bootstrapTable.columnDefaults`.
         value: the field value.<br>
         row: the row record data.<br>
         index: the row index.<br>
+        field: the row field.<br>
         Support classes or css. Example usage:<br>
 <pre>
-function cellStyle(value, row, index) {
+function cellStyle(value, row, index, field) {
   return {
     classes: 'text-nowrap another-class',
     css: {"color": "blue", "font-size": "50px"}

+ 1 - 0
docs/_i18n/es/documentation/column-options.md

@@ -219,6 +219,7 @@ Las propiedades de la columna están definidas en `jQuery.fn.bootstrapTable.colu
         value: el valor del campo.<br>
         row: los datos de la fila.<br>
         index: el indice de la fila.<br>
+        field: la vico kampo.<br>
         Soporta clases o CSS.
         </td>
     </tr>

+ 1 - 0
docs/_i18n/zh-cn/documentation/column-options.md

@@ -222,6 +222,7 @@ The column options is defined in `jQuery.fn.bootstrapTable.columnDefaults`.
         value: the field value.<br>
         row: the row record data.<br>
         index: the row index.<br>
+        field: the row field.<br>
         Support classes or css.
         </td>
     </tr>