Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Y
yii2-widgets2-module
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
hrzg
yii2-widgets2-module
Commits
b52dbbc5
Commit
b52dbbc5
authored
Jul 20, 2016
by
Tobias Munk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
📝
cell widget examples
parent
584fc3f3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
4 deletions
+27
-4
README.md
README.md
+1
-4
examples.md
docs/examples.md
+26
-0
No files found.
README.md
View file @
b52dbbc5
...
...
@@ -50,10 +50,7 @@ Example with `yii2-prototype-module`
```
{{ use ('hrzg/widget/widgets') }}
{{ widget_container_widget({id: 'header'}) }}
<div class="container">
{{ widget_container_widget({id: 'container'}) }}
</div>
{{ cell_widget({id: 'main'}) }}
```
### Widget
...
...
docs/examples.md
View file @
b52dbbc5
APP CLAUS WIDGET TEMPLATES (JSON)
=================================
## Layout
```
{{ use ('hrzg/widget/widgets') }}
{{ cell_widget({id: 'header'}) }}
<div class="container">
{{ cell_widget({id: 'container'}) }}
</div>
```
```
{{ use ('hrzg/widget/widgets') }}
{{ cell_widget({id: 'header'}) }}
<div class="row">
<div class="col-sm-4">
{{ cell_widget({id: 'block1'}) }}
</div>
<div class="col-sm-4">
{{ cell_widget({id: 'block2'}) }}
</div>
<div class="col-sm-4">
{{ cell_widget({id: 'block3'}) }}
</div>
</div>
```
*Block Widget*
----------------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment