Skip to content

Commit 27849fe

Browse files
Shuwen QianDan Lasky
authored andcommitted
Update grid/data integration article to reflect dom config api change
1 parent 6b2f9d2 commit 27849fe

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

docs/articles/grid_data_integration.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,15 @@ Let's imagine that we have a service that provides a collection of "users" that
3333
```html
3434
<template is="dom-bind">
3535
<mm-input value="{{terms}}"></mm-input>
36-
36+
3737
<mm-collection data="{{data}}" index="{{page}}" auto>
38-
<input-params>
38+
<get>
3939
<urlParam>users</urlParam>
4040
<queryParam name="first_name" value="{{terms}}">
4141
<queryParam name="last_name" value="{{terms}}">
42-
</input-params>
42+
</get>
4343
</mm-collection>
44-
44+
4545
<mm-grid data="{{data}}" index="{{page}}">
4646
<mm-grid-column field="first_name">First Name</mm-grid-column>
4747
<mm-grid-column field="last_name">Last Name</mm-grid-column>
@@ -58,12 +58,12 @@ Another grid use case that ties in nicely with data components is sorting. Like
5858
```html
5959
<template is="dom-bind">
6060
<mm-collection data="{{data}}" index="{{page}}" auto>
61-
<input-params>
61+
<get>
6262
<queryParam name="sort" value="{{sortField}}"></queryParam>
6363
<queryParam name="sort_order" value="{{sortOrder}}"></queryParam>
64-
</input-params>
64+
</get>
6565
</mm-collection>
66-
66+
6767
<mm-grid data="{{data}}" index="{{page}}" sort-field="{{sortField}}" sort-order="{{sortOrder}}">
6868
<mm-grid-column field="first_name" sort>First Name</mm-grid-column>
6969
<mm-grid-column field="last_name" sort>Last Name</mm-grid-column>
@@ -74,4 +74,4 @@ Another grid use case that ties in nicely with data components is sorting. Like
7474

7575
When a user clicks on a sort enabled column, the grid will update its `sort-field` attribute with that column's `sort-field` attribute if it exists, or default to the `field` attribute that was set on it. In the example above clicking on the "First Name" column set the grid's `sort-field` to "first_name".
7676

77-
#### Continue Reading &#8594; [Creating Custom Grid Items](article_grid_custom_grid_item.html)
77+
#### Continue Reading &#8594; [Creating Custom Grid Items](article_grid_custom_grid_item.html)

0 commit comments

Comments
 (0)