|
|
@@ -2,7 +2,7 @@
|
|
|
|
|
|
---
|
|
|
|
|
|
-The calling method syntax: `$('#table').bootstrapTable('method', parameter);`.
|
|
|
+Sintaxis para llamar a un método: `$('#table').bootstrapTable('method', parameter);`.
|
|
|
|
|
|
<table class="table"
|
|
|
data-toggle="table"
|
|
|
@@ -11,136 +11,136 @@ The calling method syntax: `$('#table').bootstrapTable('method', parameter);`.
|
|
|
data-show-columns="true">
|
|
|
<thead>
|
|
|
<tr>
|
|
|
- <th>Name</th>
|
|
|
- <th>Parameter</th>
|
|
|
- <th>Description</th>
|
|
|
+ <th>Nombre</th>
|
|
|
+ <th>Parámetro</th>
|
|
|
+ <th>Descripción</th>
|
|
|
</tr>
|
|
|
</thead>
|
|
|
<tbody>
|
|
|
<tr>
|
|
|
<td>getSelections</td>
|
|
|
<td>none</td>
|
|
|
- <td>Return all selected rows, when no record selected, am empty array will return.</td>
|
|
|
+ <td>Retorna todas las filas seleccionadas, cuando no hay seleccionadas, se retorna un array vacío .</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td>getData</td>
|
|
|
<td>none</td>
|
|
|
- <td>Get the loaded data of table.</td>
|
|
|
+ <td>Retorna los datos cargados en la tabla.</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td>load</td>
|
|
|
<td>data</td>
|
|
|
- <td>Load the data to table, the old rows will be removed.</td>
|
|
|
+ <td>Se cargan los datos en la tabla, las filas antiguas se removeran.</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td>append</td>
|
|
|
<td>data</td>
|
|
|
- <td>Append the data to table.</td>
|
|
|
+ <td>Se anexan los datos a la tabla.</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td>remove</td>
|
|
|
<td>params</td>
|
|
|
<td>
|
|
|
- Remove data from table, the params contains two properties: <br>
|
|
|
- field: the field name of remove rows. <br>
|
|
|
- values: the array of values for rows which should be removed. <br>
|
|
|
- Example: $('#myTable').bootstrapTable('remove', {field: 'id', values: ["73", "74"]})
|
|
|
+ Se remueven los datos de la tabla, los parámetros contienen dos propiedades: <br>
|
|
|
+ field: el nombre del campo de las filas removidas. <br>
|
|
|
+ values: el array de valores de las filas que deberían ser removidas. <br>
|
|
|
+ Ejemplo: $('#myTable').bootstrapTable('remove', {field: 'id', values: ["73", "74"]})
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td>updateRow</td>
|
|
|
<td>params</td>
|
|
|
<td>
|
|
|
- Update the specified row, the param contains following properties: <br>
|
|
|
- index: the row index to be updated. <br>
|
|
|
- row: the new row data.
|
|
|
+ Actualiza la fila especificada, el parámetro contiene las siguientes propiedades: <br>
|
|
|
+ index: el índice de la fila para ser actualizada. <br>
|
|
|
+ row: los nuevos data de la fila.
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td>mergeCells</td>
|
|
|
<td>options</td>
|
|
|
<td>
|
|
|
- Merge some cells to one cell, the options contains following properties: <br>
|
|
|
- index: the row index. <br>
|
|
|
- field: the field name.<br>
|
|
|
- rowspan: the rowspan count to be merged. <br>
|
|
|
- colspan: the colspan count to be merged.
|
|
|
+ Se unen algunas celdas en una, las opciones contienen las siguientes propiedades: <br>
|
|
|
+ index: el índice de la fila. <br>
|
|
|
+ field: el nombre del campo.<br>
|
|
|
+ rowspan: el rowspan para ser unidas. <br>
|
|
|
+ colspan: el colspan para ser unidas.
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td>refresh</td>
|
|
|
<td>params</td>
|
|
|
- <td>Refresh the remote server data, you can set <code>{silent: true}</code> to refresh the data silently, and set <code>{url: newUrl}</code> to change the url. To supply query params specific to this request, set <code>{query: {foo: 'bar'}}</code></td>
|
|
|
+ <td>Refresca los datos remotos del servidor, se puede setear <code>{silent: true}</code> para refrescar los datos silenciosamente, y setear <code>{url: newUrl}</code> para cambiar el URL. Para suministrar query params especificos para este request, setear <code>{query: {foo: 'bar'}}</code></td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td>showLoading</td>
|
|
|
<td>none</td>
|
|
|
- <td>Show loading status.</td>
|
|
|
+ <td>Mostrar el estado de la carga.</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td>hideLoading</td>
|
|
|
<td>none</td>
|
|
|
- <td>Hide loading status.</td>
|
|
|
+ <td>Ocultar el estado de la carga.</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td>checkAll</td>
|
|
|
<td>none</td>
|
|
|
- <td>Check all current page rows.</td>
|
|
|
+ <td>Chequear todas las filas de la página actual de la tabla.</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td>uncheckAll</td>
|
|
|
<td>none</td>
|
|
|
- <td>Uncheck all current page rows.</td>
|
|
|
+ <td>Des-chequear todas las filas de la página actual de la tabla.</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td>check</td>
|
|
|
<td>index</td>
|
|
|
- <td>Check a row, the row index start with 0.</td>
|
|
|
+ <td>Chequea una fila, el índice de la fila inicia en 0.</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td>uncheck</td>
|
|
|
<td>index</td>
|
|
|
- <td>Uncheck a row, the row index start with 0.</td>
|
|
|
+ <td>Des-chequea una fila, el índice de la fila inicia en 0.</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td>resetView</td>
|
|
|
<td>params</td>
|
|
|
- <td>Reset the bootstrap table view, for example reset the table height.</td>
|
|
|
+ <td>Reinicia la vista de bootstrap table, por ejemplo reinicia el alto de la tabla.</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td>destroy</td>
|
|
|
<td>none</td>
|
|
|
- <td>Destroy the bootstrap table.</td>
|
|
|
+ <td>Destruye la bootstrap table.</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td>showColumn</td>
|
|
|
<td>field</td>
|
|
|
- <td>Show the specified column.</td>
|
|
|
+ <td>Muestra la columna especificada.</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td>hideColumn</td>
|
|
|
<td>field</td>
|
|
|
- <td>Hide the specified column.</td>
|
|
|
+ <td>Oculta la columna especificada.</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td>scrollTo</td>
|
|
|
<td>value</td>
|
|
|
- <td>Scroll to the number value position, set 'bottom' means scroll to the bottom.</td>
|
|
|
+ <td>Setea la posición del scroll, setear 'bottom' significa setear la posición del scroll al final de la tabla.</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td>filterBy</td>
|
|
|
<td>params</td>
|
|
|
- <td>(Can use only in client-side)Filter data in table, eg. you can filter <code>{age: 10}</code> to show the data only age is equal to 10.</td>
|
|
|
+ <td>(Solo se puede usar en client-side)Filtra los datos en la tabla, ejm. se puede filtrar <code>{age: 10}</code> para mostrar los daros solo con la edad igual a 10.</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td>prevPage</td>
|
|
|
<td>none</td>
|
|
|
- <td>Go to previous page.</td>
|
|
|
+ <td>Ir a la página anterior.</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td>nextPage</td>
|
|
|
<td>none</td>
|
|
|
- <td>Go to next page.</td>
|
|
|
+ <td>Ir a la siguiente página.</td>
|
|
|
</tr>
|
|
|
</tbody>
|
|
|
</table>
|