You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
1
angular-datatables [](https://travis-ci.org/l-lin/angular-datatables)[](http://gruntjs.com/)
2
2
================
3
-
> Ajax oriented datatables for Angular.
3
+
> Datatables for Angular.
4
4
5
-
See [demo](https://l-lin.github.io/angular-datatables).
5
+
See [github page](https://l-lin.github.io/angular-datatables).
These are the methods that can be called to create a datatables options:
3
-
<ul>
4
-
<li><code>newOption()</code>: This will create a <code>DTOption</code>.
5
-
<li><code>fromSource(sAjaxSource)</code>: This will create a <code>DTOption</code> with the given ajax source</li>.
6
-
</ul>
7
-
<h3>DTOptions</h3>
8
-
These are the methods that can be called to customized the datatables options:
9
-
<ul>
10
-
<li><code>addSource(sAjaxSource)</code>: This will add the ajax source to the <code>DTOption</code>.</li>
11
-
<li><code>addFnServerData(fn)</code>: This will customize the function to fetch the data. By default, it uses the angular <code>$http</code> in order to call the Ajax request.</li>
12
-
<li><code>addDataProp(sDataProp)</code>: This will add a data property.</li>
13
-
<li><code>addOption(key, value)</code>: This will add a specific option. See the <ahref="http://datatables.net/usage/options">datatables documentation</a> for the list of options.</li>
14
-
</ul>
15
-
<h3>DTColumnBuilder</h3>
16
-
These are the methods that can be called to create a datatable column to display:
17
-
<ul>
18
-
<li><code>newColumn(mData)</code>: This will create a <code>DTColumn</code> with the attribute of the object to display in the column.</li>
19
-
</ul>
20
-
<h3>DTColumn</h3>
21
-
These are the methods that can be called to customized the columns:
22
-
<ul>
23
-
<li><code>withLabel(label)</code>: Set the label to display in the <code><thead></code>.</li>
24
-
<li><code>withClass(sClass)</code>: Set the CSS class for the column.</li>
25
-
<li><code>setVisible(bVisible)</code>: Set the visibility of the column.</li>
26
-
</ul>
27
-
<strong>Note</strong>: Of course, these helpers are not mandatory. You can directly pass the datatable options on the element attributes <code>dt-options</code> and <code>dt-columns</code>.
2
+
<p>
3
+
<strong>Note</strong>: Of course, these helpers are not mandatory. You can directly pass the datatable options on the element attributes <code>dt-options</code> and <code>dt-columns</code>.
0 commit comments