ui_bibz 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/.yardoc/checksums +49 -46
- data/.yardoc/object_types +0 -0
- data/.yardoc/objects/root.dat +0 -0
- data/Gemfile.lock +69 -56
- data/README.md +156 -61
- data/doc/UiBibz/Concerns/Models/Searchable/ClassMethods.html +6 -6
- data/doc/UiBibz/Concerns/Models/Searchable.html +2 -2
- data/doc/UiBibz/Concerns/Models.html +115 -0
- data/doc/UiBibz/Concerns.html +115 -0
- data/doc/UiBibz/Helpers/MetaHelper.html +75 -9
- data/doc/UiBibz/Helpers/UiCoreHelper.html +120 -68
- data/doc/UiBibz/Helpers/UiUxHelper.html +2 -2
- data/doc/UiBibz/Helpers/UtilsHelper.html +2 -2
- data/doc/UiBibz/Helpers.html +115 -0
- data/doc/UiBibz/Rails/Engine.html +1 -1
- data/doc/UiBibz/Rails.html +1 -1
- data/doc/UiBibz/Ui/Base.html +2 -2
- data/doc/UiBibz/Ui/Core/Alert.html +26 -13
- data/doc/UiBibz/Ui/Core/Bar.html +26 -13
- data/doc/UiBibz/Ui/Core/Breadcrumb.html +32 -19
- data/doc/UiBibz/Ui/Core/BreadcrumbLink.html +26 -13
- data/doc/UiBibz/Ui/Core/Button.html +26 -13
- data/doc/UiBibz/Ui/Core/ButtonDropdown.html +31 -18
- data/doc/UiBibz/Ui/Core/ButtonGroup.html +26 -13
- data/doc/UiBibz/Ui/Core/ButtonLink.html +26 -13
- data/doc/UiBibz/Ui/Core/ButtonSplitDropdown.html +27 -14
- data/doc/UiBibz/Ui/Core/Col.html +26 -13
- data/doc/UiBibz/Ui/Core/Component.html +166 -225
- data/doc/UiBibz/Ui/Core/Dropdown.html +61 -410
- data/doc/UiBibz/Ui/Core/DropdownLink.html +373 -0
- data/doc/UiBibz/Ui/Core/DropdownList.html +26 -13
- data/doc/UiBibz/Ui/Core/Glyph.html +26 -386
- data/doc/UiBibz/Ui/Core/Jumbotron.html +26 -13
- data/doc/UiBibz/Ui/Core/Label.html +29 -15
- data/doc/UiBibz/Ui/Core/List.html +64 -25
- data/doc/UiBibz/Ui/Core/ListGroup.html +47 -21
- data/doc/UiBibz/Ui/Core/Nav.html +64 -25
- data/doc/UiBibz/Ui/Core/NavDropdown.html +29 -16
- data/doc/UiBibz/Ui/Core/NavLink.html +30 -15
- data/doc/UiBibz/Ui/Core/Navbar.html +154 -45
- data/doc/UiBibz/Ui/Core/NavbarForm.html +58 -38
- data/doc/UiBibz/Ui/Core/NavbarNav.html +7 -7
- data/doc/UiBibz/Ui/Core/NavbarText.html +26 -13
- data/doc/UiBibz/Ui/Core/Panel.html +38 -237
- data/doc/UiBibz/Ui/Core/ProgressBar.html +45 -19
- data/doc/UiBibz/Ui/Core/Row.html +26 -13
- data/doc/UiBibz/Ui/Core/Stars.html +367 -0
- data/doc/UiBibz/Ui/Core.html +16 -5
- data/doc/UiBibz/Ui/Ux/Actionable.html +1 -1
- data/doc/UiBibz/Ui/Ux/Actions.html +198 -14
- data/doc/UiBibz/Ui/Ux/Column.html +4 -4
- data/doc/UiBibz/Ui/Ux/Columns.html +42 -16
- data/doc/UiBibz/Ui/Ux/Grid.html +31 -371
- data/doc/UiBibz/Ui/Ux/Paginable.html +22 -9
- data/doc/UiBibz/Ui/Ux/Searchable.html +22 -9
- data/doc/UiBibz/Ui/Ux/Sortable.html +18 -7
- data/doc/UiBibz/Ui/Ux/Store.html +160 -56
- data/doc/UiBibz/Ui/Ux/Table.html +109 -374
- data/doc/UiBibz/Ui/Ux/TableAction.html +2 -2
- data/doc/UiBibz/Ui/Ux/TablePagination.html +33 -14
- data/doc/UiBibz/Ui/Ux/TablePaginationPerPage.html +30 -15
- data/doc/UiBibz/Ui/Ux/TablePanel.html +139 -43
- data/doc/UiBibz/Ui/Ux/TableSearchField.html +26 -13
- data/doc/UiBibz/Ui/Ux.html +15 -4
- data/doc/UiBibz/Ui.html +4 -2
- data/doc/UiBibz/Utils/Internationalization.html +1 -1
- data/doc/UiBibz/Utils.html +1 -1
- data/doc/UiBibz.html +5 -5
- data/doc/_index.html +50 -7
- data/doc/class_list.html +1 -1
- data/doc/file.README.html +155 -63
- data/doc/images/stars.png +0 -0
- data/doc/index.html +155 -63
- data/doc/method_list.html +278 -398
- data/doc/top-level-namespace.html +1 -1
- data/lib/ui_bibz/concerns/models/searchable.rb +36 -13
- data/lib/ui_bibz/helpers/meta_helper.rb +22 -3
- data/lib/ui_bibz/helpers/ui_core_helper.rb +4 -0
- data/lib/ui_bibz/ui/core/alert.rb +2 -0
- data/lib/ui_bibz/ui/core/breadcrumb/breadcrumb.rb +3 -0
- data/lib/ui_bibz/ui/core/breadcrumb/components/breadcrumb_link.rb +2 -0
- data/lib/ui_bibz/ui/core/button/button.rb +2 -0
- data/lib/ui_bibz/ui/core/button/button_dropdown.rb +6 -4
- data/lib/ui_bibz/ui/core/button/button_group.rb +2 -0
- data/lib/ui_bibz/ui/core/button/button_link.rb +2 -0
- data/lib/ui_bibz/ui/core/button/button_split_dropdown.rb +2 -0
- data/lib/ui_bibz/ui/core/col.rb +2 -0
- data/lib/ui_bibz/ui/core/component.rb +23 -25
- data/lib/ui_bibz/ui/core/dropdown/components/dropdown_link.rb +57 -0
- data/lib/ui_bibz/ui/core/dropdown/components/dropdown_list.rb +2 -0
- data/lib/ui_bibz/ui/core/dropdown/dropdown.rb +22 -9
- data/lib/ui_bibz/ui/core/glyph.rb +10 -0
- data/lib/ui_bibz/ui/core/jumbotron.rb +2 -0
- data/lib/ui_bibz/ui/core/label.rb +3 -0
- data/lib/ui_bibz/ui/core/list/components/list.rb +4 -0
- data/lib/ui_bibz/ui/core/list/list_group.rb +4 -0
- data/lib/ui_bibz/ui/core/nav/components/nav_dropdown.rb +4 -2
- data/lib/ui_bibz/ui/core/nav/components/nav_link.rb +4 -1
- data/lib/ui_bibz/ui/core/nav/components/navbar_form.rb +39 -3
- data/lib/ui_bibz/ui/core/nav/components/navbar_nav.rb +1 -0
- data/lib/ui_bibz/ui/core/nav/components/navbar_text.rb +8 -0
- data/lib/ui_bibz/ui/core/nav/nav.rb +6 -0
- data/lib/ui_bibz/ui/core/nav/navbar.rb +31 -4
- data/lib/ui_bibz/ui/core/panel.rb +7 -5
- data/lib/ui_bibz/ui/core/progress_bar/components/bar.rb +2 -0
- data/lib/ui_bibz/ui/core/progress_bar/progress_bar.rb +4 -0
- data/lib/ui_bibz/ui/core/row.rb +2 -0
- data/lib/ui_bibz/ui/core/stars.rb +88 -0
- data/lib/ui_bibz/ui/ux/grid.rb +4 -0
- data/lib/ui_bibz/ui/ux/table/components/actions.rb +17 -2
- data/lib/ui_bibz/ui/ux/table/components/column.rb +2 -2
- data/lib/ui_bibz/ui/ux/table/components/columns.rb +4 -2
- data/lib/ui_bibz/ui/ux/table/components/store.rb +10 -1
- data/lib/ui_bibz/ui/ux/table/extensions/actionable.rb +3 -1
- data/lib/ui_bibz/ui/ux/table/extensions/paginable.rb +1 -0
- data/lib/ui_bibz/ui/ux/table/extensions/searchable.rb +1 -0
- data/lib/ui_bibz/ui/ux/table/extensions/sortable.rb +8 -2
- data/lib/ui_bibz/ui/ux/table/table.rb +19 -8
- data/lib/ui_bibz/ui/ux/table/table_pagination.rb +8 -1
- data/lib/ui_bibz/ui/ux/table/table_pagination_per_page.rb +10 -2
- data/lib/ui_bibz/ui/ux/table/table_panel.rb +28 -13
- data/lib/ui_bibz/ui/ux/table/table_search_field.rb +9 -1
- data/lib/ui_bibz/version.rb +1 -1
- data/lib/ui_bibz.rb +1 -0
- data/test/test_helper.rb +5 -0
- data/test/ui/dropdown_test.rb +4 -4
- data/test/ui/stars_test.rb +42 -0
- data/test/ui/table_test.rb +25 -6
- data/ui_bibz.gemspec +4 -1
- data/vendor/assets/fonts/FontAwesome.otf +0 -0
- data/vendor/assets/fonts/fontawesome-webfont.eot +0 -0
- data/vendor/assets/fonts/fontawesome-webfont.svg +640 -0
- data/vendor/assets/fonts/fontawesome-webfont.ttf +0 -0
- data/vendor/assets/fonts/fontawesome-webfont.woff +0 -0
- data/vendor/assets/fonts/fontawesome-webfont.woff2 +0 -0
- data/vendor/assets/javascripts/bootstrap-datepicker.min.js +8 -0
- data/vendor/assets/javascripts/bootstrap-select.min.js +8 -0
- data/vendor/assets/javascripts/bootstrap-switch.min.js +22 -0
- data/vendor/assets/javascripts/bootstrap.min.js +7 -0
- data/vendor/assets/javascripts/jquery-2.1.4.min.js +4 -0
- data/vendor/assets/javascripts/ui_bibz.js.coffee +8 -0
- data/vendor/assets/stylesheets/bootstrap-datepicker3.min.css +8 -0
- data/vendor/assets/stylesheets/bootstrap-select.min.css +6 -0
- data/vendor/assets/stylesheets/bootstrap-switch.min.css +22 -0
- data/vendor/assets/stylesheets/bootstrap-theme.min.css +5 -0
- data/vendor/assets/stylesheets/bootstrap.min.css +5 -0
- data/vendor/assets/stylesheets/font-awesome.min.css +4 -0
- data/vendor/assets/stylesheets/ui_bibz.sass +23 -0
- metadata +71 -2
data/doc/index.html
CHANGED
@@ -61,11 +61,14 @@
|
|
61
61
|
|
62
62
|
<iframe id="search_frame"></iframe>
|
63
63
|
|
64
|
-
<div id="content"><div id='filecontents'><p><img src="images/ui-bibz-logo-without-border.gif" alt="Ui Bibz logo"></p>
|
64
|
+
<div id="content"><div id='filecontents'><p><img src="http://hummel.link/Ui-Bibz/images/ui-bibz-logo-without-border.gif" alt="Ui Bibz logo"></p>
|
65
65
|
|
66
66
|
<p><a href="https://travis-ci.org/thooams/Ui-Bibz"><img src="https://travis-ci.org/thooams/Ui-Bibz.svg" alt="Build Status"></a>
|
67
67
|
<a href="https://codeclimate.com/github/thooams/Ui-Bibz"><img src="https://codeclimate.com/github/thooams/Ui-Bibz/badges/gpa.svg" alt="Code Climate"></a>
|
68
|
-
<a href="https://codeclimate.com/github/thooams/Ui-Bibz"><img src="https://codeclimate.com/github/thooams/Ui-Bibz/badges/coverage.svg" alt="Test Coverage"></a
|
68
|
+
<a href="https://codeclimate.com/github/thooams/Ui-Bibz"><img src="https://codeclimate.com/github/thooams/Ui-Bibz/badges/coverage.svg" alt="Test Coverage"></a>
|
69
|
+
<a href="http://inch-ci.org/github/thooams/Ui-Bibz"><img src="http://inch-ci.org/github/thooams/Ui-Bibz.svg?branch=master" alt="Inline docs"></a>
|
70
|
+
<a href="https://hakiri.io/github/thooams/Ui-Bibz/master"><img src="https://hakiri.io/github/thooams/Ui-Bibz/master.svg" alt="security"></a>
|
71
|
+
<a href="https://gemnasium.com/thooams/Ui-Bibz"><img src="https://gemnasium.com/thooams/Ui-Bibz.svg" alt="Dependency Status"></a></p>
|
69
72
|
|
70
73
|
<p>This project rocks and uses MIT-LICENSE.</p>
|
71
74
|
|
@@ -78,7 +81,7 @@ permettant de construire une interface très rapidement et simplement
|
|
78
81
|
</blockquote>
|
79
82
|
|
80
83
|
<p>Ui Bibz charge la librairie <a href="http://getbootstrap.com/">boostrap</a> et
|
81
|
-
<a href="http://fontawesome.io/">awesomefont</a
|
84
|
+
<a href="http://fontawesome.io/">awesomefont</a>.</p>
|
82
85
|
|
83
86
|
<p>Tous les composants du framework Ui Bibz comportent l'agument <em>options</em> et l'argument <em>html_options</em>.
|
84
87
|
Ces éléments sont basés sur l'élément <code>Component</code>.
|
@@ -154,6 +157,23 @@ dans <code>options</code> et <code>html_options</code>.</p>
|
|
154
157
|
%body
|
155
158
|
</code></pre>
|
156
159
|
|
160
|
+
<p>Ui Bibz chargera les librairies en CDN directement dans votre application.
|
161
|
+
Si vous préférez charger les librairies en locales, utilisez plutôt la méthode <code>ui_bibz_local_meta_links</code>
|
162
|
+
et insérez dans le fichier <code>/config/initializers/assets.rb</code> de votre
|
163
|
+
application ces 3-4 lignes:</p>
|
164
|
+
|
165
|
+
<pre class="code ruby"><code class="ruby">
|
166
|
+
<span class='comment'># For awesome-font
|
167
|
+
</span><span class='const'>Rails</span><span class='period'>.</span><span class='id identifier rubyid_application'>application</span><span class='period'>.</span><span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_assets'>assets</span><span class='period'>.</span><span class='id identifier rubyid_paths'>paths</span> <span class='op'><<</span> <span class='const'>Rails</span><span class='period'>.</span><span class='id identifier rubyid_root'>root</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>app</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>assets</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>fonts</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
168
|
+
<span class='comment'># For Ui bibz css
|
169
|
+
</span><span class='const'>Rails</span><span class='period'>.</span><span class='id identifier rubyid_application'>application</span><span class='period'>.</span><span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_assets'>assets</span><span class='period'>.</span><span class='id identifier rubyid_precompile'>precompile</span> <span class='op'>+=</span> <span class='qwords_beg'>%w(</span><span class='tstring_content'>bootstrap.min.css</span><span class='words_sep'> </span><span class='tstring_content'>bootstrap-theme.min.css</span><span class='words_sep'> </span><span class='tstring_content'>font-awesome.min.css</span><span class='words_sep'>)</span>
|
170
|
+
<span class='comment'># For boostrap-theme (optionel)
|
171
|
+
</span><span class='const'>Rails</span><span class='period'>.</span><span class='id identifier rubyid_application'>application</span><span class='period'>.</span><span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_assets'>assets</span><span class='period'>.</span><span class='id identifier rubyid_precompile'>precompile</span> <span class='op'>+=</span> <span class='qwords_beg'>%w(</span><span class='tstring_content'>bootstrap-theme.min.css</span><span class='words_sep'>)</span>
|
172
|
+
<span class='comment'># For Ui bibz js
|
173
|
+
</span><span class='const'>Rails</span><span class='period'>.</span><span class='id identifier rubyid_application'>application</span><span class='period'>.</span><span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_assets'>assets</span><span class='period'>.</span><span class='id identifier rubyid_precompile'>precompile</span> <span class='op'>+=</span> <span class='qwords_beg'>%w(</span><span class='tstring_content'>jquery-2.1.4.min.js</span><span class='words_sep'> </span><span class='tstring_content'>bootstrap.min.js</span><span class='words_sep'>)</span>
|
174
|
+
|
175
|
+
</code></pre>
|
176
|
+
|
157
177
|
<p>Placer la ligne suivante dans <code>/app/assets/stylesheets/applications.css</code></p>
|
158
178
|
|
159
179
|
<pre class="code ruby"><code class="ruby">...
|
@@ -172,7 +192,7 @@ dans <code>options</code> et <code>html_options</code>.</p>
|
|
172
192
|
|
173
193
|
<h3>Alert</h3>
|
174
194
|
|
175
|
-
<p><img src="images/alert.png" alt="alert"></p>
|
195
|
+
<p><img src="http://hummel.link/Ui-Bibz/images/alert.png" alt="alert"></p>
|
176
196
|
|
177
197
|
<p>L'élément <code>notify</code> à pour <code>options</code> un Hash acceptant les clefs :</p>
|
178
198
|
|
@@ -184,11 +204,11 @@ dans <code>options</code> et <code>html_options</code>.</p>
|
|
184
204
|
<pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_notify'>notify</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Alert</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='label'>state:</span> <span class='symbol'>:info</span><span class='comma'>,</span> <span class='label'>glyph:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>eye</span><span class='tstring_end'>'</span></span>
|
185
205
|
</code></pre>
|
186
206
|
|
187
|
-
<p>Voir la <a href="UiBibz/Ui/Core/Alert.html">doc</a></p>
|
207
|
+
<p>Voir la <a href="http://hummel.link/Ui-Bibz/UiBibz/Ui/Core/Alert.html">doc</a></p>
|
188
208
|
|
189
209
|
<h3>Breadcrumb (fil d'ariane)</h3>
|
190
210
|
|
191
|
-
<p><img src="images/breadcrumb.png" alt="breadcrumb"></p>
|
211
|
+
<p><img src="http://hummel.link/Ui-Bibz/images/breadcrumb.png" alt="breadcrumb"></p>
|
192
212
|
|
193
213
|
<p>L'élément <code>breadcrumb</code> à pour enfant l'élément <code>link</code> qui accepte pour option un Hash avec les clefs :</p>
|
194
214
|
|
@@ -207,13 +227,13 @@ dans <code>options</code> et <code>html_options</code>.</p>
|
|
207
227
|
<span class='kw'>end</span>
|
208
228
|
</code></pre>
|
209
229
|
|
210
|
-
<p>Voir la <a href="UiBibz/Ui/Core/Breadcrumb.html">doc</a></p>
|
230
|
+
<p>Voir la <a href="http://hummel.link/Ui-Bibz/UiBibz/Ui/Core/Breadcrumb.html">doc</a></p>
|
211
231
|
|
212
232
|
<h3>Buttons (Boutons)</h3>
|
213
233
|
|
214
234
|
<h4>Button</h4>
|
215
235
|
|
216
|
-
<p><img src="images/button.png" alt="button"></p>
|
236
|
+
<p><img src="http://hummel.link/Ui-Bibz/images/button.png" alt="button"></p>
|
217
237
|
|
218
238
|
<p>L'élément <code>button</code> à pour <code>options</code> un Hash acceptant les clefs :</p>
|
219
239
|
|
@@ -227,14 +247,14 @@ dans <code>options</code> et <code>html_options</code>.</p>
|
|
227
247
|
<pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_button'>button</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Button</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='lbrace'>{</span> <span class='label'>state:</span> <span class='symbol'>:danger</span><span class='comma'>,</span> <span class='label'>size:</span> <span class='symbol'>:xs</span><span class='comma'>,</span> <span class='label'>glyph:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>star</span><span class='tstring_end'>'</span></span> <span class='rbrace'>}</span> <span class='comma'>,</span> <span class='lbrace'>{</span> <span class='label'>class:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>my-button</span><span class='tstring_end'>'</span></span> <span class='rbrace'>}</span>
|
228
248
|
</code></pre>
|
229
249
|
|
230
|
-
<p>Voir la <a href="UiBibz/Ui/Core/Button.html">doc</a></p>
|
250
|
+
<p>Voir la <a href="http://hummel.link/Ui-Bibz/UiBibz/Ui/Core/Button.html">doc</a></p>
|
231
251
|
|
232
252
|
<h4>Button Dropdown</h4>
|
233
253
|
|
234
254
|
<p>L'élément <code>button_dropdown</code> accepte pour options les mêmes clefs que l'élément
|
235
255
|
<a href="#dropdown">dropdown</a>.</p>
|
236
256
|
|
237
|
-
<p><img src="images/button_dropdown.png" alt="button_link"></p>
|
257
|
+
<p><img src="http://hummel.link/Ui-Bibz/images/button_dropdown.png" alt="button_link"></p>
|
238
258
|
|
239
259
|
<pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_button_dropdown'>button_dropdown</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Button Dropdown</span><span class='tstring_end'>'</span></span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_bd'>bd</span><span class='op'>|</span>
|
240
260
|
<span class='id identifier rubyid_bd'>bd</span><span class='period'>.</span><span class='id identifier rubyid_list'>list</span> <span class='id identifier rubyid_link_to'>link_to</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Link 1</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>#</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
@@ -245,11 +265,11 @@ dans <code>options</code> et <code>html_options</code>.</p>
|
|
245
265
|
<span class='kw'>end</span>
|
246
266
|
</code></pre>
|
247
267
|
|
248
|
-
<p>Voir la <a href="UiBibz/Ui/Core/ButtonLink.html">doc</a></p>
|
268
|
+
<p>Voir la <a href="http://hummel.link/Ui-Bibz/UiBibz/Ui/Core/ButtonLink.html">doc</a></p>
|
249
269
|
|
250
270
|
<h4>Button group</h4>
|
251
271
|
|
252
|
-
<p><img src="images/button_group.png" alt="button_group"></p>
|
272
|
+
<p><img src="http://hummel.link/Ui-Bibz/images/button_group.png" alt="button_group"></p>
|
253
273
|
|
254
274
|
<p>L'élément <code>button_group</code> à pour <code>options</code> un Hash acceptant les clefs :</p>
|
255
275
|
|
@@ -284,22 +304,22 @@ dans <code>options</code> et <code>html_options</code>.</p>
|
|
284
304
|
<span class='kw'>end</span>
|
285
305
|
</code></pre>
|
286
306
|
|
287
|
-
<p>Voir la <a href="UiBibz/Ui/Core/ButtonGroup.html">doc</a></p>
|
307
|
+
<p>Voir la <a href="http://hummel.link/Ui-Bibz/UiBibz/Ui/Core/ButtonGroup.html">doc</a></p>
|
288
308
|
|
289
309
|
<h4>Button Link (Lien Bouton)</h4>
|
290
310
|
|
291
|
-
<p><img src="images/button_link.png" alt="button_link"></p>
|
311
|
+
<p><img src="http://hummel.link/Ui-Bibz/images/button_link.png" alt="button_link"></p>
|
292
312
|
|
293
313
|
<p>L'élément <code>button_link</code> à pour <code>options</code> un Hash acceptant les clefs :</p>
|
294
314
|
|
295
315
|
<pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_button_link'>button_link</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Button</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='lbrace'>{</span> <span class='label'>url:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>#button</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='label'>state:</span> <span class='symbol'>:primary</span><span class='comma'>,</span> <span class='label'>glyph:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>star</span><span class='tstring_end'>'</span></span> <span class='rbrace'>}</span><span class='comma'>,</span> <span class='lbrace'>{</span> <span class='label'>class:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>my-button</span><span class='tstring_end'>'</span></span> <span class='rbrace'>}</span>
|
296
316
|
</code></pre>
|
297
317
|
|
298
|
-
<p>Voir la <a href="UiBibz/Ui/Core/ButtonLink.html">doc</a></p>
|
318
|
+
<p>Voir la <a href="http://hummel.link/Ui-Bibz/UiBibz/Ui/Core/ButtonLink.html">doc</a></p>
|
299
319
|
|
300
320
|
<h4>Button Split Dropdown</h4>
|
301
321
|
|
302
|
-
<p><img src="images/button_split_dropdown.png" alt="button_group"></p>
|
322
|
+
<p><img src="http://hummel.link/Ui-Bibz/images/button_split_dropdown.png" alt="button_group"></p>
|
303
323
|
|
304
324
|
<p>L'élément <code>button_split_dropdown</code>accepte pour options les mêmes clefs
|
305
325
|
que l'élément <a href="#dropdown">dropdown</a>.</p>
|
@@ -315,7 +335,7 @@ que l'élément <a href="#dropdown">dropdown</a>.</p>
|
|
315
335
|
<span class='kw'>end</span>
|
316
336
|
</code></pre>
|
317
337
|
|
318
|
-
<p>Voir la <a href="UiBibz/Ui/Core/ButtonSplitDropdown.html">doc</a></p>
|
338
|
+
<p>Voir la <a href="http://hummel.link/Ui-Bibz/UiBibz/Ui/Core/ButtonSplitDropdown.html">doc</a></p>
|
319
339
|
|
320
340
|
<h3>Dropdown</h3>
|
321
341
|
|
@@ -354,11 +374,11 @@ d.list '--'
|
|
354
374
|
...
|
355
375
|
</code></pre>
|
356
376
|
|
357
|
-
<p>Voir la <a href="UiBibz/Ui/Core/Dropdown.html">doc</a></p>
|
377
|
+
<p>Voir la <a href="http://hummel.link/Ui-Bibz/UiBibz/Ui/Core/Dropdown.html">doc</a></p>
|
358
378
|
|
359
379
|
<h3>Progress Bar</h3>
|
360
380
|
|
361
|
-
<p><img src="images/progress_bar.png" alt="glyph"></p>
|
381
|
+
<p><img src="http://hummel.link/Ui-Bibz/images/progress_bar.png" alt="glyph"></p>
|
362
382
|
|
363
383
|
<p>L'élément <code>progress_bar</code> à pour <code>options</code> un Hash acceptant les clefs :</p>
|
364
384
|
|
@@ -387,11 +407,11 @@ d.list '--'
|
|
387
407
|
<span class='kw'>end</span>
|
388
408
|
</code></pre>
|
389
409
|
|
390
|
-
<p>Voir la <a href="UiBibz/Ui/Core/ProgressBar.html">doc</a></p>
|
410
|
+
<p>Voir la <a href="http://hummel.link/Ui-Bibz/UiBibz/Ui/Core/ProgressBar.html">doc</a></p>
|
391
411
|
|
392
412
|
<h3>Glyph</h3>
|
393
413
|
|
394
|
-
<p><img src="images/glyph.png" alt="glyph"></p>
|
414
|
+
<p><img src="http://hummel.link/Ui-Bibz/images/glyph.png" alt="glyph"></p>
|
395
415
|
|
396
416
|
<p>Les glyphs utilisés proviennent de <a href="http://fontawesome.io/">Font Awesome</a>.
|
397
417
|
L'élément <code>glyph</code> peut contenir un hash pour <code>content</code>
|
@@ -407,16 +427,38 @@ L'élément <code>glyph</code> à pour <code>options</code> un Hash acceptan
|
|
407
427
|
glyph { name: 'star', size: 3, type: 'fw' }
|
408
428
|
</code></pre>
|
409
429
|
|
410
|
-
<p>Voir la <a href="UiBibz/Ui/Core/Glyph.html">doc</a></p>
|
430
|
+
<p>Voir la <a href="http://hummel.link/Ui-Bibz/UiBibz/Ui/Core/Glyph.html">doc</a></p>
|
431
|
+
|
432
|
+
<h3>Stars</h3>
|
433
|
+
|
434
|
+
<p><img src="http://hummel.link/Ui-Bibz/images/stars.png" alt="stars"></p>
|
435
|
+
|
436
|
+
<p>L'élément <code>stars</code> à pour <code>options</code> un Hash acceptant les clefs :</p>
|
437
|
+
|
438
|
+
<ul>
|
439
|
+
<li>num - Correspond au nombre d'étoiles affichées (default: 5)</li>
|
440
|
+
<li><a href="#state-values">state</a></li>
|
441
|
+
</ul>
|
442
|
+
|
443
|
+
<pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_stars'>stars</span> <span class='float'>3.2</span>
|
444
|
+
|
445
|
+
<span class='id identifier rubyid_stars'>stars</span> <span class='int'>7</span><span class='comma'>,</span> <span class='lbrace'>{</span> <span class='label'>num:</span> <span class='int'>10</span><span class='comma'>,</span> <span class='label'>state:</span> <span class='symbol'>:danger</span> <span class='rbrace'>}</span>
|
446
|
+
|
447
|
+
<span class='id identifier rubyid_stars'>stars</span> <span class='label'>num:</span> <span class='int'>3</span> <span class='kw'>do</span>
|
448
|
+
<span class='int'>1</span>
|
449
|
+
<span class='kw'>end</span>
|
450
|
+
</code></pre>
|
451
|
+
|
452
|
+
<p>Voir la <a href="http://hummel.link/Ui-Bibz/UiBibz/Ui/Core/Stars.html">doc</a></p>
|
411
453
|
|
412
454
|
<h3>Panel</h3>
|
413
455
|
|
414
|
-
<p><img src="images/panel.png" alt="panel"></p>
|
456
|
+
<p><img src="http://hummel.link/Ui-Bibz/images/panel.png" alt="panel"></p>
|
415
457
|
|
416
458
|
<p>L'élément <code>panel</code> à pour <code>options</code> un Hash acceptant les clefs :</p>
|
417
459
|
|
418
460
|
<ul>
|
419
|
-
<li><a href="#state">state</a></li>
|
461
|
+
<li><a href="#state-values">state</a></li>
|
420
462
|
<li>tap (true) : permet de créer un header, body et footer</li>
|
421
463
|
</ul>
|
422
464
|
|
@@ -430,7 +472,7 @@ panel(state: :danger) do
|
|
430
472
|
'Content'
|
431
473
|
end
|
432
474
|
|
433
|
-
panel({ tap: true, state: :danger }, { class: 'exemple' }) |p|
|
475
|
+
panel({ tap: true, state: :danger, table_options: { actionable: true } }, { class: 'exemple' }) |p|
|
434
476
|
p.header 'Header', glyph: 'eye'
|
435
477
|
p.body(class: 'my-body') do
|
436
478
|
'Content body'
|
@@ -439,11 +481,11 @@ panel({ tap: true, state: :danger }, { class: 'exemple' }) |p|
|
|
439
481
|
end
|
440
482
|
</code></pre>
|
441
483
|
|
442
|
-
<p>Voir la <a href="UiBibz/Ui/Core/Panel.html">doc</a></p>
|
484
|
+
<p>Voir la <a href="http://hummel.link/Ui-Bibz/UiBibz/Ui/Core/Panel.html">doc</a></p>
|
443
485
|
|
444
486
|
<h3>Table</h3>
|
445
487
|
|
446
|
-
<p><img src="images/table.png" alt="table"></p>
|
488
|
+
<p><img src="http://hummel.link/Ui-Bibz/images/table.png" alt="table"></p>
|
447
489
|
|
448
490
|
<p>L'élément <code>table</code> est un tableau composé d'une recherche, une pagination et un trie de colonnes intégrées.
|
449
491
|
Le tableau est compatible <a href="http://guides.rubyonrails.org/i18n.html">I18n</a>.
|
@@ -479,7 +521,7 @@ faire une recherche sur les attributs souhaités.</p>
|
|
479
521
|
|
480
522
|
<p>Un champ recherche est disponible dans la vue :</p>
|
481
523
|
|
482
|
-
<p><img src="images/table_search_field.png" alt="table_search_field"></p>
|
524
|
+
<p><img src="http://hummel.link/Ui-Bibz/images/table_search_field.png" alt="table_search_field"></p>
|
483
525
|
|
484
526
|
<pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_table_search_field'>table_search_field</span> <span class='label'>store:</span> <span class='ivar'>@documents</span>
|
485
527
|
</code></pre>
|
@@ -491,7 +533,7 @@ faire une recherche sur les attributs souhaités.</p>
|
|
491
533
|
|
492
534
|
<p>Un champs select par page est disponible dans la vue :</p>
|
493
535
|
|
494
|
-
<p><img src="images/table_pagination_per_page.png" alt="table_search_field"></p>
|
536
|
+
<p><img src="http://hummel.link/Ui-Bibz/images/table_pagination_per_page.png" alt="table_search_field"></p>
|
495
537
|
|
496
538
|
<pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_table_pagination_per_page'>table_pagination_per_page</span> <span class='label'>store:</span> <span class='ivar'>@documents</span>
|
497
539
|
</code></pre>
|
@@ -584,11 +626,11 @@ faire une recherche sur les attributs souhaités.</p>
|
|
584
626
|
<pre class="code ruby"><code class="ruby"><span class='comment'># app/views/documents/index.html.haml
|
585
627
|
</span><span class='id identifier rubyid_table'>table</span> <span class='label'>store:</span> <span class='ivar'>@documents</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_g'>g</span><span class='op'>|</span>
|
586
628
|
<span class='id identifier rubyid_g'>g</span><span class='period'>.</span><span class='id identifier rubyid_columns'>columns</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_c'>c</span><span class='op'>|</span>
|
587
|
-
<span class='id identifier rubyid_c'>c</span><span class='period'>.</span><span class='id identifier rubyid_column'>column</span> <span class='
|
588
|
-
<span class='id identifier rubyid_c'>c</span><span class='period'>.</span><span class='id identifier rubyid_column'>column</span> <span class='
|
589
|
-
<span class='id identifier rubyid_c'>c</span><span class='period'>.</span><span class='id identifier rubyid_column'>column</span> <span class='
|
590
|
-
<span class='id identifier rubyid_c'>c</span><span class='period'>.</span><span class='id identifier rubyid_column'>column</span> <span class='
|
591
|
-
<span class='id identifier rubyid_c'>c</span><span class='period'>.</span><span class='id identifier rubyid_column'>column</span> <span class='
|
629
|
+
<span class='id identifier rubyid_c'>c</span><span class='period'>.</span><span class='id identifier rubyid_column'>column</span> <span class='symbol'>:id</span><span class='comma'>,</span> <span class='lbrace'>{</span> <span class='label'>name:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>#</span><span class='tstring_end'>'</span></span> <span class='rbrace'>}</span>
|
630
|
+
<span class='id identifier rubyid_c'>c</span><span class='period'>.</span><span class='id identifier rubyid_column'>column</span> <span class='symbol'>:name_fr</span><span class='comma'>,</span> <span class='lbrace'>{</span> <span class='label'>name:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Name fr</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='label'>link:</span> <span class='id identifier rubyid_edit_document_path'>edit_document_path</span><span class='lparen'>(</span><span class='symbol'>:id</span><span class='rparen'>)</span> <span class='rbrace'>}</span>
|
631
|
+
<span class='id identifier rubyid_c'>c</span><span class='period'>.</span><span class='id identifier rubyid_column'>column</span> <span class='symbol'>:name_en</span>
|
632
|
+
<span class='id identifier rubyid_c'>c</span><span class='period'>.</span><span class='id identifier rubyid_column'>column</span> <span class='symbol'>:hotline_access</span><span class='comma'>,</span> <span class='lbrace'>{</span> <span class='label'>name:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Hotline</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='label'>format:</span> <span class='id identifier rubyid_lambda'>lambda</span><span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_records'>records</span><span class='comma'>,</span> <span class='id identifier rubyid_record'>record</span><span class='op'>|</span> <span class='id identifier rubyid_glyph'>glyph</span><span class='lparen'>(</span><span class='id identifier rubyid_record'>record</span><span class='period'>.</span><span class='id identifier rubyid_icon'>icon</span><span class='rparen'>)</span> <span class='rbrace'>}</span> <span class='rbrace'>}</span>
|
633
|
+
<span class='id identifier rubyid_c'>c</span><span class='period'>.</span><span class='id identifier rubyid_column'>column</span> <span class='symbol'>:update_at</span><span class='comma'>,</span> <span class='lbrace'>{</span> <span class='label'>date_format:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>%Y</span><span class='tstring_end'>'</span></span> <span class='rbrace'>}</span>
|
592
634
|
<span class='kw'>end</span>
|
593
635
|
<span class='kw'>end</span>
|
594
636
|
</code></pre>
|
@@ -614,7 +656,7 @@ l'appeler comme valeur pour la clef <code>data_index</code>.</p>
|
|
614
656
|
<pre class="code ruby"><code class="ruby"><span class='comment'># app/views/documents/index.html.haml
|
615
657
|
</span><span class='id identifier rubyid_table'>table</span> <span class='label'>store:</span> <span class='ivar'>@documents</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_g'>g</span><span class='op'>|</span>
|
616
658
|
<span class='id identifier rubyid_g'>g</span><span class='period'>.</span><span class='id identifier rubyid_columns'>columns</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_c'>c</span><span class='op'>|</span>
|
617
|
-
<span class='id identifier rubyid_c'>c</span><span class='period'>.</span><span class='id identifier rubyid_column'>column</span> <span class='
|
659
|
+
<span class='id identifier rubyid_c'>c</span><span class='period'>.</span><span class='id identifier rubyid_column'>column</span> <span class='symbol'>:user_name</span><span class='comma'>,</span> <span class='lbrace'>{</span> <span class='label'>name:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>User</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='label'>sort:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>user.name</span><span class='tstring_end'>"</span></span> <span class='rbrace'>}</span>
|
618
660
|
<span class='kw'>end</span>
|
619
661
|
<span class='kw'>end</span>
|
620
662
|
</code></pre>
|
@@ -662,11 +704,55 @@ fonctionnalité de trie.</p>
|
|
662
704
|
<pre class="code ruby"><code class="ruby"><span class='comment'># app/views/documents/index.html.haml
|
663
705
|
</span><span class='id identifier rubyid_table'>table</span> <span class='label'>store:</span> <span class='ivar'>@documents</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_g'>g</span><span class='op'>|</span>
|
664
706
|
<span class='id identifier rubyid_g'>g</span><span class='period'>.</span><span class='id identifier rubyid_columns'>columns</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_c'>c</span><span class='op'>|</span>
|
665
|
-
<span class='id identifier rubyid_c'>c</span><span class='period'>.</span><span class='id identifier rubyid_column'>column</span> <span class='
|
707
|
+
<span class='id identifier rubyid_c'>c</span><span class='period'>.</span><span class='id identifier rubyid_column'>column</span> <span class='symbol'>:users</span><span class='comma'>,</span> <span class='lbrace'>{</span> <span class='label'>name:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Users count</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='label'>count:</span> <span class='kw'>true</span><span class='comma'>,</span> <span class='label'>custom_sort:</span> <span class='kw'>true</span> <span class='rbrace'>}</span>
|
708
|
+
<span class='kw'>end</span>
|
709
|
+
<span class='kw'>end</span>
|
710
|
+
</code></pre>
|
711
|
+
|
712
|
+
<h4>table actions</h4>
|
713
|
+
|
714
|
+
<p>Les actions d'une table peuvent être formatées avec le 'record' passé en paramètre.</p>
|
715
|
+
|
716
|
+
<pre class="code ruby"><code class="ruby"><span class='comment'># app/views/documents/index.html.haml
|
717
|
+
</span><span class='id identifier rubyid_table'>table</span> <span class='label'>store:</span> <span class='ivar'>@documents</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_t'>t</span><span class='op'>|</span>
|
718
|
+
<span class='id identifier rubyid_t'>t</span><span class='period'>.</span><span class='id identifier rubyid_columns'>columns</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_cls'>cls</span><span class='op'>|</span>
|
719
|
+
<span class='id identifier rubyid_cls'>cls</span><span class='period'>.</span><span class='id identifier rubyid_column'>column</span> <span class='symbol'>:id</span><span class='comma'>,</span> <span class='lbrace'>{</span> <span class='label'>name:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>#</span><span class='tstring_end'>'</span></span> <span class='rbrace'>}</span>
|
720
|
+
<span class='id identifier rubyid_cls'>cls</span><span class='period'>.</span><span class='id identifier rubyid_column'>column</span> <span class='symbol'>:name_en</span>
|
721
|
+
<span class='kw'>end</span>
|
722
|
+
<span class='id identifier rubyid_t'>t</span><span class='period'>.</span><span class='id identifier rubyid_actions'>actions</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_acs'>acs</span><span class='op'>|</span>
|
723
|
+
<span class='id identifier rubyid_acs'>acs</span><span class='period'>.</span><span class='id identifier rubyid_format'>format</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_record'>record</span><span class='op'>|</span>
|
724
|
+
<span class='kw'>if</span> <span class='id identifier rubyid_record'>record</span><span class='period'>.</span><span class='id identifier rubyid_active?'>active?</span>
|
725
|
+
<span class='id identifier rubyid_acs'>acs</span><span class='period'>.</span><span class='id identifier rubyid_action'>action</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Active</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='lbrace'>{</span> <span class='label'>url:</span> <span class='id identifier rubyid_active_document_path'>active_document_path</span><span class='lparen'>(</span><span class='id identifier rubyid_record'>record</span><span class='period'>.</span><span class='id identifier rubyid_id'>id</span><span class='rparen'>)</span> <span class='rbrace'>}</span>
|
726
|
+
<span class='kw'>else</span>
|
727
|
+
<span class='id identifier rubyid_acs'>acs</span><span class='period'>.</span><span class='id identifier rubyid_action'>action</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Disabled</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='lbrace'>{</span> <span class='label'>url:</span> <span class='id identifier rubyid_disabled_document_path'>disabled_document_path</span><span class='lparen'>(</span><span class='id identifier rubyid_record'>record</span><span class='period'>.</span><span class='id identifier rubyid_id'>id</span><span class='rparen'>)</span> <span class='rbrace'>}</span>
|
728
|
+
<span class='kw'>end</span>
|
729
|
+
<span class='id identifier rubyid_acs'>acs</span><span class='period'>.</span><span class='id identifier rubyid_action'>action</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Show</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='lbrace'>{</span> <span class='label'>url:</span> <span class='id identifier rubyid_document_path'>document_path</span><span class='lparen'>(</span><span class='id identifier rubyid_record'>record</span><span class='period'>.</span><span class='id identifier rubyid_id'>id</span><span class='rparen'>)</span> <span class='rbrace'>}</span>
|
730
|
+
<span class='kw'>end</span>
|
666
731
|
<span class='kw'>end</span>
|
667
732
|
<span class='kw'>end</span>
|
668
733
|
</code></pre>
|
669
734
|
|
735
|
+
<p>Les actions ainsi que la colonne action peuvent être désactivées en passant l'agument <code>actionable:
|
736
|
+
false</code>.</p>
|
737
|
+
|
738
|
+
<pre class="code ruby"><code class="ruby"><span class='comment'># app/views/documents/index.html.haml
|
739
|
+
</span><span class='id identifier rubyid_table'>table</span> <span class='label'>store:</span> <span class='ivar'>@documents</span><span class='comma'>,</span> <span class='label'>actionable:</span> <span class='kw'>false</span>
|
740
|
+
</code></pre>
|
741
|
+
|
742
|
+
<h4>Plus d'une table sur une page html</h4>
|
743
|
+
|
744
|
+
<p>Si vous avez plus d'une table sur votre page html et que vous souhaitez faire
|
745
|
+
des recherches, paginer... Vous devez identifier chaque store pour que l'action
|
746
|
+
effectuée (recherche, pagination,...) ne soit affectée que sur la table désirée.</p>
|
747
|
+
|
748
|
+
<p>Pour cela il faut que vous donniez un identifiant unique à vos stores.</p>
|
749
|
+
|
750
|
+
<p>ex:</p>
|
751
|
+
|
752
|
+
<pre class="code ruby"><code class="ruby"><span class='comment'># app/controllers/document_controller.rb
|
753
|
+
</span><span class='ivar'>@documents</span> <span class='op'>=</span> <span class='const'>Document</span><span class='period'>.</span><span class='id identifier rubyid_includes'>includes</span><span class='lparen'>(</span><span class='symbol'>:users</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_table_search_pagination'>table_search_pagination</span><span class='lparen'>(</span><span class='id identifier rubyid_params'>params</span><span class='comma'>,</span> <span class='id identifier rubyid_session'>session</span><span class='comma'>,</span> <span class='lbrace'>{</span> <span class='label'>store_id:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>store-1</span><span class='tstring_end'>'</span></span><span class='rbrace'>}</span><span class='rparen'>)</span>
|
754
|
+
</code></pre>
|
755
|
+
|
670
756
|
<h4>table I18n</h4>
|
671
757
|
|
672
758
|
<p>La table est utilisable avec I18n. Les traductions
|
@@ -694,11 +780,11 @@ activerecord:
|
|
694
780
|
...
|
695
781
|
</code></pre>
|
696
782
|
|
697
|
-
<p>Voir la <a href="UiBibz/Ui/Ux/Table.html">doc</a></p>
|
783
|
+
<p>Voir la <a href="http://hummel.link/Ui-Bibz/UiBibz/Ui/Ux/Table.html">doc</a></p>
|
698
784
|
|
699
785
|
<h3>Table Panel</h3>
|
700
786
|
|
701
|
-
<p><img src="images/table_panel.png" alt="table_panel"></p>
|
787
|
+
<p><img src="http://hummel.link/Ui-Bibz/images/table_panel.png" alt="table_panel"></p>
|
702
788
|
|
703
789
|
<p>Le composant <code>table_panel</code> est un <a href="#table">tableau</a> dans un <a href="#panel">panel</a>.</p>
|
704
790
|
|
@@ -706,13 +792,13 @@ activerecord:
|
|
706
792
|
|
707
793
|
table_panel({ store: @users, tap: true, glyph: 'home', state: :danger }) do |g|
|
708
794
|
g.columns do |cls|
|
709
|
-
cls.column
|
710
|
-
cls.column
|
711
|
-
cls.column
|
712
|
-
cls.column(
|
795
|
+
cls.column :id, { name: '#' }
|
796
|
+
cls.column :username, { name: 'Username', link: edit_user_path(:id) }
|
797
|
+
cls.column :name
|
798
|
+
cls.column(:email) do
|
713
799
|
'Email'
|
714
800
|
end
|
715
|
-
cls.column
|
801
|
+
cls.column :role_name, { name: 'Role', sort: 'roles.name' }
|
716
802
|
end
|
717
803
|
g.actions do |acs|
|
718
804
|
acs.action 'Action 1', { url: edit_user_path(:id), glyph: 'pencil' }
|
@@ -724,11 +810,11 @@ table_panel({ store: @users, tap: true, glyph: 'home', state: :danger }) do |g|
|
|
724
810
|
end
|
725
811
|
</code></pre>
|
726
812
|
|
727
|
-
<p>Voir la <a href="UiBibz/Ui/Ux/TablePanel.html">doc</a></p>
|
813
|
+
<p>Voir la <a href="http://hummel.link/Ui-Bibz/UiBibz/Ui/Ux/TablePanel.html">doc</a></p>
|
728
814
|
|
729
815
|
<h3>List</h3>
|
730
816
|
|
731
|
-
<p><img src="images/list.png" alt="list"></p>
|
817
|
+
<p><img src="http://hummel.link/Ui-Bibz/images/list.png" alt="list"></p>
|
732
818
|
|
733
819
|
<p>Par défaut une liste à pour tag <code><li></code>.
|
734
820
|
Mais elle peut se transformer en lien <code><a></code> à travers l'option <code>type:</code>.
|
@@ -748,11 +834,11 @@ Par défaut le tag <code><li></code> est présent.</p>
|
|
748
834
|
<span class='kw'>end</span>
|
749
835
|
</code></pre>
|
750
836
|
|
751
|
-
<p>Voir la <a href="UiBibz/Ui/Core/List.html">doc</a></p>
|
837
|
+
<p>Voir la <a href="http://hummel.link/Ui-Bibz/UiBibz/Ui/Core/List.html">doc</a></p>
|
752
838
|
|
753
839
|
<h3>Nav</h3>
|
754
840
|
|
755
|
-
<p><img src="images/nav.png" alt="nav"></p>
|
841
|
+
<p><img src="http://hummel.link/Ui-Bibz/images/nav.png" alt="nav"></p>
|
756
842
|
|
757
843
|
<p>Par défaut la navigation comporte des onglets "tab".
|
758
844
|
L'élément <code>nav</code> accepte en option les arguments :</p>
|
@@ -773,11 +859,11 @@ L'élément <code>nav</code> accepte en option les arguments :</p>
|
|
773
859
|
<span class='kw'>end</span>
|
774
860
|
</code></pre>
|
775
861
|
|
776
|
-
<p>Voir la <a href="UiBibz/Ui/Core/Nav.html">doc</a></p>
|
862
|
+
<p>Voir la <a href="http://hummel.link/Ui-Bibz/UiBibz/Ui/Core/Nav.html">doc</a></p>
|
777
863
|
|
778
|
-
<
|
864
|
+
<h3>Navbar</h3>
|
779
865
|
|
780
|
-
<p><img src="images/navbar.png" alt="navbar"></p>
|
866
|
+
<p><img src="http://hummel.link/Ui-Bibz/images/navbar.png" alt="navbar"></p>
|
781
867
|
|
782
868
|
<p>Par défaut la navigation comporte des onglets "tab".
|
783
869
|
L'élément <code>navbar</code> accepte en option les arguments :</p>
|
@@ -789,8 +875,14 @@ L'élément <code>navbar</code> accepte en option les arguments :</p>
|
|
789
875
|
<li>title (string)</li>
|
790
876
|
</ul>
|
791
877
|
|
792
|
-
<p>L'élement
|
793
|
-
|
878
|
+
<p>L'élement nav est un <a href="#component">component</a> et contient les composants :</p>
|
879
|
+
|
880
|
+
<ul>
|
881
|
+
<li>form</li>
|
882
|
+
<li>dropdown</li>
|
883
|
+
<li>text</li>
|
884
|
+
<li>link</li>
|
885
|
+
</ul>
|
794
886
|
|
795
887
|
<pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_navbar'>navbar</span><span class='lparen'>(</span><span class='label'>type:</span> <span class='symbol'>:inverse</span><span class='comma'>,</span> <span class='label'>position:</span> <span class='symbol'>:top</span><span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_nb'>nb</span><span class='op'>|</span>
|
796
888
|
<span class='id identifier rubyid_nb'>nb</span><span class='period'>.</span><span class='id identifier rubyid_nav'>nav</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_n'>n</span><span class='op'>|</span>
|
@@ -805,11 +897,11 @@ L'élement nav est un <a href="#component">component</a>.</p>
|
|
805
897
|
<span class='kw'>end</span>
|
806
898
|
</code></pre>
|
807
899
|
|
808
|
-
<p>Voir la <a href="UiBibz/Ui/Core/Navbar.html">doc</a></p>
|
900
|
+
<p>Voir la <a href="http://hummel.link/Ui-Bibz/UiBibz/Ui/Core/Navbar.html">doc</a></p>
|
809
901
|
|
810
902
|
<h3>Etiquette</h3>
|
811
903
|
|
812
|
-
<p><img src="images/etiquette.png" alt="list"></p>
|
904
|
+
<p><img src="http://hummel.link/Ui-Bibz/images/etiquette.png" alt="list"></p>
|
813
905
|
|
814
906
|
<p>NB : Les méthodes <code>Tag, label</code> sont déjà utilisées par Rails.
|
815
907
|
L'élément <code>etiquette</code> à pour <code>options</code> un Hash acceptant les clefs :</p>
|
@@ -826,7 +918,7 @@ L'élément <code>etiquette</code> à pour <code>options</code> un Hash acce
|
|
826
918
|
<span class='id identifier rubyid_etiquette'>etiquette</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>label 2</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='label'>state:</span> <span class='symbol'>:danger</span>
|
827
919
|
</code></pre>
|
828
920
|
|
829
|
-
<p>Voir la <a href="UiBibz/Ui/Core/Etiquette.html">doc</a></p>
|
921
|
+
<p>Voir la <a href="http://hummel.link/Ui-Bibz/UiBibz/Ui/Core/Etiquette.html">doc</a></p>
|
830
922
|
|
831
923
|
<h3>Row</h3>
|
832
924
|
|
@@ -838,7 +930,7 @@ L'élément <code>etiquette</code> à pour <code>options</code> un Hash acce
|
|
838
930
|
<span class='comment'># => <div class='row toto'>content</div>
|
839
931
|
</span></code></pre>
|
840
932
|
|
841
|
-
<p>Voir la <a href="UiBibz/Ui/Core/Content.html">doc</a></p>
|
933
|
+
<p>Voir la <a href="http://hummel.link/Ui-Bibz/UiBibz/Ui/Core/Content.html">doc</a></p>
|
842
934
|
|
843
935
|
<h3>Col</h3>
|
844
936
|
|
@@ -871,7 +963,7 @@ col.</p>
|
|
871
963
|
<span class='comment'># => <div class='col-xs-offset-1 col-md-3 test'>content</div>
|
872
964
|
</span></code></pre>
|
873
965
|
|
874
|
-
<p>Voir la <a href="UiBibz/Ui/Core/Col.html">doc</a></p>
|
966
|
+
<p>Voir la <a href="http://hummel.link/Ui-Bibz/UiBibz/Ui/Core/Col.html">doc</a></p>
|
875
967
|
|
876
968
|
<h3>Grid</h3>
|
877
969
|
|
@@ -940,18 +1032,18 @@ le nombre de colonnes occupées par la vue.</p>
|
|
940
1032
|
<span class='kw'>end</span>
|
941
1033
|
</code></pre>
|
942
1034
|
|
943
|
-
<p>Voir la <a href="UiBibz/Ui/Ux/Grid.html">doc</a></p>
|
1035
|
+
<p>Voir la <a href="http://hummel.link/Ui-Bibz/UiBibz/Ui/Ux/Grid.html">doc</a></p>
|
944
1036
|
|
945
1037
|
<h3>Arguments and Values</h3>
|
946
1038
|
|
947
|
-
<h4>
|
1039
|
+
<h4>status-values</h4>
|
948
1040
|
|
949
1041
|
<ul>
|
950
1042
|
<li>:active</li>
|
951
1043
|
<li>:disable</li>
|
952
1044
|
</ul>
|
953
1045
|
|
954
|
-
<h4>
|
1046
|
+
<h4>size-values</h4>
|
955
1047
|
|
956
1048
|
<ul>
|
957
1049
|
<li>:xs</li>
|
@@ -959,7 +1051,7 @@ le nombre de colonnes occupées par la vue.</p>
|
|
959
1051
|
<li>:lg</li>
|
960
1052
|
</ul>
|
961
1053
|
|
962
|
-
<h4>
|
1054
|
+
<h4>state-values</h4>
|
963
1055
|
|
964
1056
|
<ul>
|
965
1057
|
<li>:default</li>
|
@@ -970,7 +1062,7 @@ le nombre de colonnes occupées par la vue.</p>
|
|
970
1062
|
<li>:danger</li>
|
971
1063
|
</ul>
|
972
1064
|
|
973
|
-
<h4>
|
1065
|
+
<h4>glyph-arguments</h4>
|
974
1066
|
|
975
1067
|
<ul>
|
976
1068
|
<li>name</li>
|
@@ -1013,7 +1105,7 @@ comme ci-dessous.</p>
|
|
1013
1105
|
</div></div>
|
1014
1106
|
|
1015
1107
|
<div id="footer">
|
1016
|
-
Generated on
|
1108
|
+
Generated on Mon Aug 31 14:08:52 2015 by
|
1017
1109
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1018
1110
|
0.8.7.6 (ruby-1.9.3).
|
1019
1111
|
</div>
|