Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update data table data binding examples
- Loading branch information
Showing
6 changed files
with
43 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 16 additions & 3 deletions
19
...le-server-side-data-binding/components/data-table-server-side-data-binding.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,25 @@ | ||
<div class="feature-container"> | ||
<h2>Server Side Data Biding</h2> | ||
<p>In server side data binding, data should be passed via the <b>dataSource</b> attribute => [dataSource]="source"</p> | ||
<p>Sometimes, you might want to bind a direct data source coming from the different server to the data table without | ||
binding it as a static data source.</p> | ||
|
||
<app-server-side-data-binding></app-server-side-data-binding> | ||
<p>in such cases, now you can easily use ornamentum server side data binding facility.</p> | ||
|
||
<h2 id="whatYouWillSee">What You Will See</h2> | ||
|
||
<app-server-side-data-binding></app-server-side-data-binding> | ||
<app-example-code [files]="serverSideDataBindingUsage"></app-example-code> | ||
|
||
<h2>Suggested Links</h2> | ||
<h2 id="basicUsage">Basic Usage</h2> | ||
<p>To support server side data binding, simply set available observable data source to <code>dataSource</code> | ||
attribute.</p> | ||
|
||
<pre class="prettyprint lang-html">{{demoSnippet.serverSideDataBinding}}</pre> | ||
|
||
<p>Please refer <b>data-table-server-side-data-binding.component.ts</b> file to see the example of server side data | ||
binding via data source.</p> | ||
|
||
<h2 id="suggestedLinks">Suggested Links</h2> | ||
<a rel="noopener" target="_blank" href="api-docs/components/DataTableComponent.html#dataSource">API Doc for Server | ||
Side Data Binding</a> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
...feature/data-table/data-table-server-side-data-binding/components/docs/items.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<ng-data-table | ||
... | ||
[dataSource]="<-- observable data source -->" | ||
</ng-data-table> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters