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
<aclass="btn doc" href="#"><iclass="icon icon-edit"></i></a><spanclass="bubble">improve the documentation</span>
35
+
<aclass="btn doc" href="https://github.com/lorenzofox3/smart-table-website/tree/gh-pages/sections/introduction"><iclass="icon icon-edit"></i></a><spanclass="bubble">improve the documentation</span>
36
36
37
37
<p><strong>Smart table</strong> is an <ahref="#">Angularjs</a> module to easily display data in a table with a set
38
38
of built in functionalities such filetering,
@@ -49,29 +49,25 @@ <h2>Introduction</h2>
49
49
easy to get into the source code to modify/customise the module to best fit your needs.
50
50
You will find for example:
51
51
<ul>
52
-
<li>on the <ahref="#">different branches</a> of the project some custom implementation to turn
52
+
<li>on the <ahref="https://github.com/lorenzofox3/Smart-Table/tree/server-sample">different branches</a> of the project some custom implementation to turn
53
53
smart-table into a server driven table while changing less than 10 lines
54
54
</li>
55
55
56
-
<li>on <ahref="#">plunker</a>(here made by "bob") some custom implementation with richer
56
+
<li>on <ahref="http://plnkr.co/edit/xsJs8m?p=preview">plunker</a>(here made by Jiri Kavulak) some custom implementation with richer
57
57
functionalities
58
58
</li>
59
59
</ul>
60
60
</ul>
61
-
62
-
63
61
<p>Although smart-table is from far the best table module for angular :D, there are other table modules in the
64
62
angular ecosystem you might be interested in. The approach and philosophy are different and maybe more appropriate to your way of building web application. Among the most popular:</p>
<aclass="btn doc" href="#"><iclass="icon icon-edit"></i></a><spanclass="bubble">improve the documentation</span>
146
+
<aclass="btn doc" href="https://github.com/lorenzofox3/smart-table-website/tree/gh-pages/sections/format"><iclass="icon icon-edit"></i></a><spanclass="bubble">improve the documentation</span>
151
147
<p>
152
148
In our previous examples the data were displayed as raw strings,but what if we want to format date, currency and so on in a proper way ?
153
149
In the column configuration, you can specify how to format the data for the given column by adding <em>formatFunction</em> and <em>formatParameter</em>
<aclass="btn doc" href="#"><iclass="icon icon-edit"></i></a><spanclass="bubble">improve the documentation</span>
198
+
<aclass="btn doc" href="https://github.com/lorenzofox3/smart-table-website/tree/gh-pages/sections/sort"><iclass="icon icon-edit"></i></a><spanclass="bubble">improve the documentation</span>
203
199
<p>You may also want to sort the data rows. By default the table sort the data rows following the <ahref="http://docs.angularjs.org/api/ng.filter:orderBy">orderBy</a> angular algorithm but you can also use your own
204
200
algorithm (see below). When you click on one of the column header the orderBy algorithm will sort the data rows according to these rules
205
201
</p>
@@ -251,7 +247,7 @@ <h3>Use your own algorithm</h3>
<aclass="btn doc" href="#"><iclass="icon icon-edit"></i></a><spanclass="bubble">improve the documentation</span>
250
+
<aclass="btn doc" href="https://github.com/lorenzofox3/smart-table-website/tree/gh-pages/sections/filter"><iclass="icon icon-edit"></i></a><spanclass="bubble">improve the documentation</span>
255
251
<p>The <ahref="#">table controller API</a> gives you a way to filter the data comparing an input to both a given column values or in the whole table.
256
252
To display an input textbox for a global search (in the whole table) you just have to set the <em>isGlobalSearchActivated</em> property to true in the table global config object. The algorithm used
257
253
will be the one used by the <ahref="http://docs.angularjs.org/api/ng.filter:filter">filter</a> filter from Angular. Of course, if you want to use your own, you can specify it in the global config (see below)
@@ -297,7 +293,7 @@ <h3>Use your own algorithm</h3>
<aclass="btn doc" href="#"><iclass="icon icon-edit"></i></a><spanclass="bubble">improve the documentation</span>
296
+
<aclass="btn doc" href="https://github.com/lorenzofox3/smart-table-website/tree/gh-pages/sections/selection"><iclass="icon icon-edit"></i></a><spanclass="bubble">improve the documentation</span>
301
297
<p>You can select data row according to two different modes : single or multiple (of course you can disable selection) by setting the global
302
298
property <em>selectionMode</em> to <em>single</em> or <em>multiple</em> (any other value will be taken as selectionMode='none'). This is the only time the table changes
303
299
a property value into your model: it add the "isSelected" property to your data model object. On one hand you can consider it "pollutes" your model but
@@ -367,7 +363,7 @@ <h3>Keep track of the changes in selection</h3>
<aclass="btn doc" href="#"><iclass="icon icon-edit"></i></a><spanclass="bubble">improve the documentation</span>
366
+
<aclass="btn doc" href="https://github.com/lorenzofox3/smart-table-website/tree/gh-pages/sections/edit"><iclass="icon icon-edit"></i></a><spanclass="bubble">improve the documentation</span>
371
367
<p>You can make the cells of a given column editable by simply setting the <em>isEditable</em> property to true in this column config. This will allow
372
368
you to edit directly the property on the data model object. Therefore, you may want to specify which type of input the cell will accept. You just
373
369
have to set the <em>type</em> property to the the type you want (email, number, etc). If the input is valid the model is updated, otherwise it will keep
@@ -417,7 +413,7 @@ <h3>notify an item has been updated</h3>
<aclass="btn doc" href="#"><iclass="icon icon-edit"></i></a><spanclass="bubble">improve the documentation</span>
458
+
<aclass="btn doc" href="https://github.com/lorenzofox3/smart-table-website/tree/gh-pages/sections/cellTemplate"><iclass="icon icon-edit"></i></a><spanclass="bubble">improve the documentation</span>
463
459
<p>If you prefer to use a particular template for the cells in a given column, you can do it by specifying the <em>cellTemplateUrl</em> property in the column config
464
460
this is useful not only for styling purpose but also if you want to enhance the behavior of the cell. The template will be compiled so that if it contains
465
461
directives they will be considered as angular directives. Moreover, these directives can have access to all the row and column data through the scope
<aclass="btn doc" href="#"><iclass="icon icon-edit"></i></a><spanclass="bubble">improve the documentation</span>
582
+
<aclass="btn doc" href="https://github.com/lorenzofox3/smart-table-website/tree/gh-pages/sections/pagination"><iclass="icon icon-edit"></i></a><spanclass="bubble">improve the documentation</span>
587
583
<p>If you don't want to display too much data at the time you'll be happy using the pagination feature. It uses the <ahref="https://github.com/angular-ui/bootstrap/tree/master/src/pagination">angular.ui-boostrap pagination directive</a> and you'll be able
588
584
to configure it through some global config properties. First of all, the property <em>isPaginationEnabled</em> must be set to true. Then you can decide the
589
585
number of pages you want to display with the <em>maxSize</em> property and the number of items you want to display on a page thanks to the <em>itemsByPage</em> property</p>
@@ -650,7 +646,7 @@ <h2>Client side Pagination</h2>
<aclass="btn doc" href="#"><iclass="icon icon-edit"></i></a><spanclass="bubble">improve the documentation</span>
3
+
<aclass="btn doc" href="https://github.com/lorenzofox3/smart-table-website/tree/gh-pages/sections/cellTemplate"><iclass="icon icon-edit"></i></a><spanclass="bubble">improve the documentation</span>
4
4
<p>If you prefer to use a particular template for the cells in a given column, you can do it by specifying the <em>cellTemplateUrl</em> property in the column config
5
5
this is useful not only for styling purpose but also if you want to enhance the behavior of the cell. The template will be compiled so that if it contains
6
6
directives they will be considered as angular directives. Moreover, these directives can have access to all the row and column data through the scope
<aclass="btn doc" href="#"><iclass="icon icon-edit"></i></a><spanclass="bubble">improve the documentation</span>
3
+
<aclass="btn doc" href="https://github.com/lorenzofox3/smart-table-website/tree/gh-pages/sections/edit"><iclass="icon icon-edit"></i></a><spanclass="bubble">improve the documentation</span>
4
4
<p>You can make the cells of a given column editable by simply setting the <em>isEditable</em> property to true in this column config. This will allow
5
5
you to edit directly the property on the data model object. Therefore, you may want to specify which type of input the cell will accept. You just
6
6
have to set the <em>type</em> property to the the type you want (email, number, etc). If the input is valid the model is updated, otherwise it will keep
<aclass="btn doc" href="#"><iclass="icon icon-edit"></i></a><spanclass="bubble">improve the documentation</span>
3
+
<aclass="btn doc" href="https://github.com/lorenzofox3/smart-table-website/tree/gh-pages/sections/filter"><iclass="icon icon-edit"></i></a><spanclass="bubble">improve the documentation</span>
4
4
<p>The <ahref="#">table controller API</a> gives you a way to filter the data comparing an input to both a given column values or in the whole table.
5
5
To display an input textbox for a global search (in the whole table) you just have to set the <em>isGlobalSearchActivated</em> property to true in the table global config object. The algorithm used
6
6
will be the one used by the <ahref="http://docs.angularjs.org/api/ng.filter:filter">filter</a> filter from Angular. Of course, if you want to use your own, you can specify it in the global config (see below)
<aclass="btn doc" href="#"><iclass="icon icon-edit"></i></a><spanclass="bubble">improve the documentation</span>
3
+
<aclass="btn doc" href="https://github.com/lorenzofox3/smart-table-website/tree/gh-pages/sections/format"><iclass="icon icon-edit"></i></a><spanclass="bubble">improve the documentation</span>
4
4
<p>
5
5
In our previous examples the data were displayed as raw strings,but what if we want to format date, currency and so on in a proper way ?
6
6
In the column configuration, you can specify how to format the data for the given column by adding <em>formatFunction</em> and <em>formatParameter</em>
<aclass="btn doc" href="#"><iclass="icon icon-edit"></i></a><spanclass="bubble">improve the documentation</span>
3
+
<aclass="btn doc" href="https://github.com/lorenzofox3/smart-table-website/tree/gh-pages/sections/pagination"><iclass="icon icon-edit"></i></a><spanclass="bubble">improve the documentation</span>
4
4
<p>If you don't want to display too much data at the time you'll be happy using the pagination feature. It uses the <ahref="https://github.com/angular-ui/bootstrap/tree/master/src/pagination">angular.ui-boostrap pagination directive</a> and you'll be able
5
5
to configure it through some global config properties. First of all, the property <em>isPaginationEnabled</em> must be set to true. Then you can decide the
6
6
number of pages you want to display with the <em>maxSize</em> property and the number of items you want to display on a page thanks to the <em>itemsByPage</em> property</p>
<aclass="btn doc" href="#"><iclass="icon icon-edit"></i></a><spanclass="bubble">improve the documentation</span>
3
+
<aclass="btn doc" href="https://github.com/lorenzofox3/smart-table-website/tree/gh-pages/sections/selection"><iclass="icon icon-edit"></i></a><spanclass="bubble">improve the documentation</span>
4
4
<p>You can select data row according to two different modes : single or multiple (of course you can disable selection) by setting the global
5
5
property <em>selectionMode</em> to <em>single</em> or <em>multiple</em> (any other value will be taken as selectionMode='none'). This is the only time the table changes
6
6
a property value into your model: it add the "isSelected" property to your data model object. On one hand you can consider it "pollutes" your model but
<aclass="btn doc" href="#"><iclass="icon icon-edit"></i></a><spanclass="bubble">improve the documentation</span>
3
+
<aclass="btn doc" href="https://github.com/lorenzofox3/smart-table-website/tree/gh-pages/sections/sort"><iclass="icon icon-edit"></i></a><spanclass="bubble">improve the documentation</span>
4
4
<p>You may also want to sort the data rows. By default the table sort the data rows following the <ahref="http://docs.angularjs.org/api/ng.filter:orderBy">orderBy</a> angular algorithm but you can also use your own
5
5
algorithm (see below). When you click on one of the column header the orderBy algorithm will sort the data rows according to these rules
0 commit comments