Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c3cbf11
commit c3fba85
Showing
2 changed files
with
41 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
We can easily render [jQuery Mobile Grids](http://demos.jquerymobile.com/1.4.5/grids/) with DrupalGap. | ||
|
||
![Grid Widget](http://drupalgap.org/sites/default/files/jqm-grid.png) | ||
|
||
## Render Array | ||
|
||
``` | ||
var content = {}; | ||
content['my_grid'] = { | ||
theme: 'jqm_grid', | ||
columns: 2, | ||
items: [ | ||
bl('Foo', 'foo'), | ||
bl('Bar', 'bar'), | ||
bl('Baz', 'baz'), | ||
bl('Chop', 'chop') | ||
] | ||
}; | ||
return content; | ||
``` | ||
|
||
## theme('jqm_grid', ...) | ||
|
||
``` | ||
var html = theme('jqm_grid', { | ||
columns: 2, | ||
items: [ | ||
bl('Foo', 'foo'), | ||
bl('Bar', 'bar'), | ||
bl('Baz', 'baz'), | ||
bl('Chop', 'chop') | ||
] | ||
}); | ||
return 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