Skip to content

Commit

Permalink
Fix - docs: dt-api row.add() and dt-api rows.add() will accept `t…
Browse files Browse the repository at this point in the history
…r` elements
  • Loading branch information
Allan Jardine committed May 29, 2015
1 parent 5618757 commit bb57a3b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/api/row.add().xml
Expand Up @@ -8,8 +8,8 @@
<signature>row.add( data )</signature>
<description>Add a new row to the table using the given data</description>
<description>Select a row found by a row selector</description>
<parameter type="array|object" name="data">
Data to use for the new row. This may be an array, object or Javascript object instance, but must be in the same format as the other data in the table (i.e. if your table uses objects, pass in an object here!).
<parameter type="array|object|node" name="data">
Data to use for the new row. This may be an array, object, Javascript object instance or a `-tag tr` element. If a data structure is used (i.e. array or object) it must be in the same format as the other data in the table (i.e. if your table uses objects, pass in an object with the same properties here!).
</parameter>
<returns type="DataTables.Api">DataTables API instance with the newly added row in its result set.</returns>
</type>
Expand Down
2 changes: 1 addition & 1 deletion docs/api/rows.add().xml
Expand Up @@ -9,7 +9,7 @@
<description>Add new rows to the table using the data given</description>
<description>Select a row found by a row selector</description>
<parameter type="array" name="data">
Array of data elements, with each one describing a new row to be added to the table (i.e. `data.length` is the number of new rows that will be added to the table). Each data element may be an array, object or Javascript object instance, but must be in the same format as the other data in the table (i.e. if your table uses objects, pass in an object here!).
Array of data elements, with each one describing a new row to be added to the table (i.e. `data.length` is the number of new rows that will be added to the table). Each data element may be an array, object, Javascript object instance or a `-tag tr` element. The data structure given must be in the same format as the other data in the table (i.e. if your table uses objects, pass in an object here!).
</parameter>
<returns type="DataTables.Api">DataTables API instance with the newly added rows in its result set.</returns>
</type>
Expand Down

0 comments on commit bb57a3b

Please sign in to comment.