ui_bibz 1.1.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (150) hide show
  1. checksums.yaml +8 -8
  2. data/.yardoc/checksums +49 -46
  3. data/.yardoc/object_types +0 -0
  4. data/.yardoc/objects/root.dat +0 -0
  5. data/Gemfile.lock +69 -56
  6. data/README.md +156 -61
  7. data/doc/UiBibz/Concerns/Models/Searchable/ClassMethods.html +6 -6
  8. data/doc/UiBibz/Concerns/Models/Searchable.html +2 -2
  9. data/doc/UiBibz/Concerns/Models.html +115 -0
  10. data/doc/UiBibz/Concerns.html +115 -0
  11. data/doc/UiBibz/Helpers/MetaHelper.html +75 -9
  12. data/doc/UiBibz/Helpers/UiCoreHelper.html +120 -68
  13. data/doc/UiBibz/Helpers/UiUxHelper.html +2 -2
  14. data/doc/UiBibz/Helpers/UtilsHelper.html +2 -2
  15. data/doc/UiBibz/Helpers.html +115 -0
  16. data/doc/UiBibz/Rails/Engine.html +1 -1
  17. data/doc/UiBibz/Rails.html +1 -1
  18. data/doc/UiBibz/Ui/Base.html +2 -2
  19. data/doc/UiBibz/Ui/Core/Alert.html +26 -13
  20. data/doc/UiBibz/Ui/Core/Bar.html +26 -13
  21. data/doc/UiBibz/Ui/Core/Breadcrumb.html +32 -19
  22. data/doc/UiBibz/Ui/Core/BreadcrumbLink.html +26 -13
  23. data/doc/UiBibz/Ui/Core/Button.html +26 -13
  24. data/doc/UiBibz/Ui/Core/ButtonDropdown.html +31 -18
  25. data/doc/UiBibz/Ui/Core/ButtonGroup.html +26 -13
  26. data/doc/UiBibz/Ui/Core/ButtonLink.html +26 -13
  27. data/doc/UiBibz/Ui/Core/ButtonSplitDropdown.html +27 -14
  28. data/doc/UiBibz/Ui/Core/Col.html +26 -13
  29. data/doc/UiBibz/Ui/Core/Component.html +166 -225
  30. data/doc/UiBibz/Ui/Core/Dropdown.html +61 -410
  31. data/doc/UiBibz/Ui/Core/DropdownLink.html +373 -0
  32. data/doc/UiBibz/Ui/Core/DropdownList.html +26 -13
  33. data/doc/UiBibz/Ui/Core/Glyph.html +26 -386
  34. data/doc/UiBibz/Ui/Core/Jumbotron.html +26 -13
  35. data/doc/UiBibz/Ui/Core/Label.html +29 -15
  36. data/doc/UiBibz/Ui/Core/List.html +64 -25
  37. data/doc/UiBibz/Ui/Core/ListGroup.html +47 -21
  38. data/doc/UiBibz/Ui/Core/Nav.html +64 -25
  39. data/doc/UiBibz/Ui/Core/NavDropdown.html +29 -16
  40. data/doc/UiBibz/Ui/Core/NavLink.html +30 -15
  41. data/doc/UiBibz/Ui/Core/Navbar.html +154 -45
  42. data/doc/UiBibz/Ui/Core/NavbarForm.html +58 -38
  43. data/doc/UiBibz/Ui/Core/NavbarNav.html +7 -7
  44. data/doc/UiBibz/Ui/Core/NavbarText.html +26 -13
  45. data/doc/UiBibz/Ui/Core/Panel.html +38 -237
  46. data/doc/UiBibz/Ui/Core/ProgressBar.html +45 -19
  47. data/doc/UiBibz/Ui/Core/Row.html +26 -13
  48. data/doc/UiBibz/Ui/Core/Stars.html +367 -0
  49. data/doc/UiBibz/Ui/Core.html +16 -5
  50. data/doc/UiBibz/Ui/Ux/Actionable.html +1 -1
  51. data/doc/UiBibz/Ui/Ux/Actions.html +198 -14
  52. data/doc/UiBibz/Ui/Ux/Column.html +4 -4
  53. data/doc/UiBibz/Ui/Ux/Columns.html +42 -16
  54. data/doc/UiBibz/Ui/Ux/Grid.html +31 -371
  55. data/doc/UiBibz/Ui/Ux/Paginable.html +22 -9
  56. data/doc/UiBibz/Ui/Ux/Searchable.html +22 -9
  57. data/doc/UiBibz/Ui/Ux/Sortable.html +18 -7
  58. data/doc/UiBibz/Ui/Ux/Store.html +160 -56
  59. data/doc/UiBibz/Ui/Ux/Table.html +109 -374
  60. data/doc/UiBibz/Ui/Ux/TableAction.html +2 -2
  61. data/doc/UiBibz/Ui/Ux/TablePagination.html +33 -14
  62. data/doc/UiBibz/Ui/Ux/TablePaginationPerPage.html +30 -15
  63. data/doc/UiBibz/Ui/Ux/TablePanel.html +139 -43
  64. data/doc/UiBibz/Ui/Ux/TableSearchField.html +26 -13
  65. data/doc/UiBibz/Ui/Ux.html +15 -4
  66. data/doc/UiBibz/Ui.html +4 -2
  67. data/doc/UiBibz/Utils/Internationalization.html +1 -1
  68. data/doc/UiBibz/Utils.html +1 -1
  69. data/doc/UiBibz.html +5 -5
  70. data/doc/_index.html +50 -7
  71. data/doc/class_list.html +1 -1
  72. data/doc/file.README.html +155 -63
  73. data/doc/images/stars.png +0 -0
  74. data/doc/index.html +155 -63
  75. data/doc/method_list.html +278 -398
  76. data/doc/top-level-namespace.html +1 -1
  77. data/lib/ui_bibz/concerns/models/searchable.rb +36 -13
  78. data/lib/ui_bibz/helpers/meta_helper.rb +22 -3
  79. data/lib/ui_bibz/helpers/ui_core_helper.rb +4 -0
  80. data/lib/ui_bibz/ui/core/alert.rb +2 -0
  81. data/lib/ui_bibz/ui/core/breadcrumb/breadcrumb.rb +3 -0
  82. data/lib/ui_bibz/ui/core/breadcrumb/components/breadcrumb_link.rb +2 -0
  83. data/lib/ui_bibz/ui/core/button/button.rb +2 -0
  84. data/lib/ui_bibz/ui/core/button/button_dropdown.rb +6 -4
  85. data/lib/ui_bibz/ui/core/button/button_group.rb +2 -0
  86. data/lib/ui_bibz/ui/core/button/button_link.rb +2 -0
  87. data/lib/ui_bibz/ui/core/button/button_split_dropdown.rb +2 -0
  88. data/lib/ui_bibz/ui/core/col.rb +2 -0
  89. data/lib/ui_bibz/ui/core/component.rb +23 -25
  90. data/lib/ui_bibz/ui/core/dropdown/components/dropdown_link.rb +57 -0
  91. data/lib/ui_bibz/ui/core/dropdown/components/dropdown_list.rb +2 -0
  92. data/lib/ui_bibz/ui/core/dropdown/dropdown.rb +22 -9
  93. data/lib/ui_bibz/ui/core/glyph.rb +10 -0
  94. data/lib/ui_bibz/ui/core/jumbotron.rb +2 -0
  95. data/lib/ui_bibz/ui/core/label.rb +3 -0
  96. data/lib/ui_bibz/ui/core/list/components/list.rb +4 -0
  97. data/lib/ui_bibz/ui/core/list/list_group.rb +4 -0
  98. data/lib/ui_bibz/ui/core/nav/components/nav_dropdown.rb +4 -2
  99. data/lib/ui_bibz/ui/core/nav/components/nav_link.rb +4 -1
  100. data/lib/ui_bibz/ui/core/nav/components/navbar_form.rb +39 -3
  101. data/lib/ui_bibz/ui/core/nav/components/navbar_nav.rb +1 -0
  102. data/lib/ui_bibz/ui/core/nav/components/navbar_text.rb +8 -0
  103. data/lib/ui_bibz/ui/core/nav/nav.rb +6 -0
  104. data/lib/ui_bibz/ui/core/nav/navbar.rb +31 -4
  105. data/lib/ui_bibz/ui/core/panel.rb +7 -5
  106. data/lib/ui_bibz/ui/core/progress_bar/components/bar.rb +2 -0
  107. data/lib/ui_bibz/ui/core/progress_bar/progress_bar.rb +4 -0
  108. data/lib/ui_bibz/ui/core/row.rb +2 -0
  109. data/lib/ui_bibz/ui/core/stars.rb +88 -0
  110. data/lib/ui_bibz/ui/ux/grid.rb +4 -0
  111. data/lib/ui_bibz/ui/ux/table/components/actions.rb +17 -2
  112. data/lib/ui_bibz/ui/ux/table/components/column.rb +2 -2
  113. data/lib/ui_bibz/ui/ux/table/components/columns.rb +4 -2
  114. data/lib/ui_bibz/ui/ux/table/components/store.rb +10 -1
  115. data/lib/ui_bibz/ui/ux/table/extensions/actionable.rb +3 -1
  116. data/lib/ui_bibz/ui/ux/table/extensions/paginable.rb +1 -0
  117. data/lib/ui_bibz/ui/ux/table/extensions/searchable.rb +1 -0
  118. data/lib/ui_bibz/ui/ux/table/extensions/sortable.rb +8 -2
  119. data/lib/ui_bibz/ui/ux/table/table.rb +19 -8
  120. data/lib/ui_bibz/ui/ux/table/table_pagination.rb +8 -1
  121. data/lib/ui_bibz/ui/ux/table/table_pagination_per_page.rb +10 -2
  122. data/lib/ui_bibz/ui/ux/table/table_panel.rb +28 -13
  123. data/lib/ui_bibz/ui/ux/table/table_search_field.rb +9 -1
  124. data/lib/ui_bibz/version.rb +1 -1
  125. data/lib/ui_bibz.rb +1 -0
  126. data/test/test_helper.rb +5 -0
  127. data/test/ui/dropdown_test.rb +4 -4
  128. data/test/ui/stars_test.rb +42 -0
  129. data/test/ui/table_test.rb +25 -6
  130. data/ui_bibz.gemspec +4 -1
  131. data/vendor/assets/fonts/FontAwesome.otf +0 -0
  132. data/vendor/assets/fonts/fontawesome-webfont.eot +0 -0
  133. data/vendor/assets/fonts/fontawesome-webfont.svg +640 -0
  134. data/vendor/assets/fonts/fontawesome-webfont.ttf +0 -0
  135. data/vendor/assets/fonts/fontawesome-webfont.woff +0 -0
  136. data/vendor/assets/fonts/fontawesome-webfont.woff2 +0 -0
  137. data/vendor/assets/javascripts/bootstrap-datepicker.min.js +8 -0
  138. data/vendor/assets/javascripts/bootstrap-select.min.js +8 -0
  139. data/vendor/assets/javascripts/bootstrap-switch.min.js +22 -0
  140. data/vendor/assets/javascripts/bootstrap.min.js +7 -0
  141. data/vendor/assets/javascripts/jquery-2.1.4.min.js +4 -0
  142. data/vendor/assets/javascripts/ui_bibz.js.coffee +8 -0
  143. data/vendor/assets/stylesheets/bootstrap-datepicker3.min.css +8 -0
  144. data/vendor/assets/stylesheets/bootstrap-select.min.css +6 -0
  145. data/vendor/assets/stylesheets/bootstrap-switch.min.css +22 -0
  146. data/vendor/assets/stylesheets/bootstrap-theme.min.css +5 -0
  147. data/vendor/assets/stylesheets/bootstrap.min.css +5 -0
  148. data/vendor/assets/stylesheets/font-awesome.min.css +4 -0
  149. data/vendor/assets/stylesheets/ui_bibz.sass +23 -0
  150. metadata +71 -2
@@ -201,7 +201,7 @@
201
201
 
202
202
 
203
203
  <h3 class="inherited">Methods inherited from <span class='object_link'><a href="../Core/Component.html" title="UiBibz::Ui::Core::Component (class)">Core::Component</a></span></h3>
204
- <p class="inherited"><span class='object_link'><a href="../Core/Component.html#add_classes-instance_method" title="UiBibz::Ui::Core::Component#add_classes (method)">#add_classes</a></span>, <span class='object_link'><a href="../Core/Component.html#badge_html-instance_method" title="UiBibz::Ui::Core::Component#badge_html (method)">#badge_html</a></span>, <span class='object_link'><a href="../Core/Component.html#class_and_html_options-instance_method" title="UiBibz::Ui::Core::Component#class_and_html_options (method)">#class_and_html_options</a></span>, <span class='object_link'><a href="../Core/Component.html#glyph-instance_method" title="UiBibz::Ui::Core::Component#glyph (method)">#glyph</a></span>, <span class='object_link'><a href="../Core/Component.html#glyph_and_content_html-instance_method" title="UiBibz::Ui::Core::Component#glyph_and_content_html (method)">#glyph_and_content_html</a></span>, <span class='object_link'><a href="../Core/Component.html#glyph_with_space-instance_method" title="UiBibz::Ui::Core::Component#glyph_with_space (method)">#glyph_with_space</a></span>, <span class='object_link'><a href="../Core/Component.html#options_in_html_options-instance_method" title="UiBibz::Ui::Core::Component#options_in_html_options (method)">#options_in_html_options</a></span>, <span class='object_link'><a href="../Core/Component.html#state-instance_method" title="UiBibz::Ui::Core::Component#state (method)">#state</a></span>, <span class='object_link'><a href="../Core/Component.html#states-instance_method" title="UiBibz::Ui::Core::Component#states (method)">#states</a></span>, <span class='object_link'><a href="../Core/Component.html#status-instance_method" title="UiBibz::Ui::Core::Component#status (method)">#status</a></span></p>
204
+ <p class="inherited"><span class='object_link'><a href="../Core/Component.html#add_classes-instance_method" title="UiBibz::Ui::Core::Component#add_classes (method)">#add_classes</a></span>, <span class='object_link'><a href="../Core/Component.html#badge_html-instance_method" title="UiBibz::Ui::Core::Component#badge_html (method)">#badge_html</a></span>, <span class='object_link'><a href="../Core/Component.html#class_and_html_options-instance_method" title="UiBibz::Ui::Core::Component#class_and_html_options (method)">#class_and_html_options</a></span>, <span class='object_link'><a href="../Core/Component.html#glyph-instance_method" title="UiBibz::Ui::Core::Component#glyph (method)">#glyph</a></span>, <span class='object_link'><a href="../Core/Component.html#glyph_and_content_html-instance_method" title="UiBibz::Ui::Core::Component#glyph_and_content_html (method)">#glyph_and_content_html</a></span>, <span class='object_link'><a href="../Core/Component.html#glyph_with_space-instance_method" title="UiBibz::Ui::Core::Component#glyph_with_space (method)">#glyph_with_space</a></span>, <span class='object_link'><a href="../Core/Component.html#state-instance_method" title="UiBibz::Ui::Core::Component#state (method)">#state</a></span></p>
205
205
 
206
206
 
207
207
 
@@ -300,7 +300,7 @@
300
300
  </div>
301
301
 
302
302
  <div id="footer">
303
- Generated on Wed Jul 8 15:00:19 2015 by
303
+ Generated on Mon Aug 31 14:08:55 2015 by
304
304
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
305
305
  0.8.7.6 (ruby-1.9.3).
306
306
  </div>
@@ -180,7 +180,8 @@ method</p>
180
180
 
181
181
 
182
182
  <span class="summary_desc"><div class='inline'>
183
- <p>A new instance of TablePagination.</p>
183
+ <p>Initialize pagination with component item pagination require WillPaginate
184
+ gem.</p>
184
185
  </div></span>
185
186
 
186
187
  </li>
@@ -203,7 +204,9 @@ method</p>
203
204
 
204
205
 
205
206
 
206
- <span class="summary_desc"><div class='inline'></div></span>
207
+ <span class="summary_desc"><div class='inline'>
208
+ <p>Render html tag with boostrap pagination theme.</p>
209
+ </div></span>
207
210
 
208
211
  </li>
209
212
 
@@ -239,7 +242,8 @@ method</p>
239
242
  </h3><div class="docstring">
240
243
  <div class="discussion">
241
244
 
242
- <p>Returns a new instance of TablePagination</p>
245
+ <p>Initialize pagination with component item pagination require WillPaginate
246
+ gem</p>
243
247
 
244
248
 
245
249
  </div>
@@ -253,12 +257,12 @@ method</p>
253
257
  <pre class="lines">
254
258
 
255
259
 
256
- 30
257
- 31
258
- 32</pre>
260
+ 32
261
+ 33
262
+ 34</pre>
259
263
  </td>
260
264
  <td>
261
- <pre class="code"><span class="info file"># File 'lib/ui_bibz/ui/ux/table/table_pagination.rb', line 30</span>
265
+ <pre class="code"><span class="info file"># File 'lib/ui_bibz/ui/ux/table/table_pagination.rb', line 32</span>
262
266
 
263
267
  <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span> <span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_html_options'>html_options</span> <span class='op'>=</span> <span class='kw'>nil</span>
264
268
  <span class='ivar'>@pagination</span> <span class='op'>=</span> <span class='const'>UiBibz</span><span class='op'>::</span><span class='const'>Ui</span><span class='op'>::</span><span class='const'>Core</span><span class='op'>::</span><span class='const'>Component</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='comma'>,</span> <span class='id identifier rubyid_html_options'>html_options</span>
@@ -284,21 +288,36 @@ method</p>
284
288
 
285
289
 
286
290
 
287
- </h3><table class="source_code">
291
+ </h3><div class="docstring">
292
+ <div class="discussion">
293
+
294
+ <p>Render html tag with boostrap pagination theme</p>
295
+
296
+
297
+ </div>
298
+ </div>
299
+ <div class="tags">
300
+
301
+
302
+ </div><table class="source_code">
288
303
  <tr>
289
304
  <td>
290
305
  <pre class="lines">
291
306
 
292
307
 
293
- 34
294
- 35
295
- 36</pre>
308
+ 37
309
+ 38
310
+ 39
311
+ 40
312
+ 41</pre>
296
313
  </td>
297
314
  <td>
298
- <pre class="code"><span class="info file"># File 'lib/ui_bibz/ui/ux/table/table_pagination.rb', line 34</span>
315
+ <pre class="code"><span class="info file"># File 'lib/ui_bibz/ui/ux/table/table_pagination.rb', line 37</span>
299
316
 
300
317
  <span class='kw'>def</span> <span class='id identifier rubyid_render'>render</span>
301
- <span class='id identifier rubyid_will_paginate'>will_paginate</span><span class='lparen'>(</span><span class='id identifier rubyid_store'>store</span><span class='period'>.</span><span class='id identifier rubyid_records'>records</span><span class='comma'>,</span> <span class='label'>params:</span> <span class='lbrace'>{</span> <span class='label'>controller:</span> <span class='id identifier rubyid_store'>store</span><span class='period'>.</span><span class='id identifier rubyid_controller'>controller</span> <span class='rbrace'>}</span><span class='comma'>,</span> <span class='label'>renderer:</span> <span class='const'>BootstrapPagination</span><span class='op'>::</span><span class='const'>Rails</span><span class='rparen'>)</span>
318
+ <span class='id identifier rubyid_paginate_parameters'>paginate_parameters</span> <span class='op'>=</span> <span class='lbrace'>{</span> <span class='label'>controller:</span> <span class='id identifier rubyid_store'>store</span><span class='period'>.</span><span class='id identifier rubyid_controller'>controller</span> <span class='rbrace'>}</span>
319
+ <span class='id identifier rubyid_paginate_parameters'>paginate_parameters</span> <span class='op'>=</span> <span class='id identifier rubyid_paginate_parameters'>paginate_parameters</span><span class='period'>.</span><span class='id identifier rubyid_merge'>merge</span><span class='lparen'>(</span><span class='lbrace'>{</span> <span class='label'>store_id:</span> <span class='id identifier rubyid_store'>store</span><span class='period'>.</span><span class='id identifier rubyid_id'>id</span> <span class='rbrace'>}</span><span class='rparen'>)</span> <span class='kw'>unless</span> <span class='id identifier rubyid_store'>store</span><span class='period'>.</span><span class='id identifier rubyid_id'>id</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
320
+ <span class='id identifier rubyid_will_paginate'>will_paginate</span><span class='lparen'>(</span><span class='id identifier rubyid_store'>store</span><span class='period'>.</span><span class='id identifier rubyid_records'>records</span><span class='comma'>,</span> <span class='label'>params:</span> <span class='id identifier rubyid_paginate_parameters'>paginate_parameters</span><span class='comma'>,</span> <span class='label'>renderer:</span> <span class='const'>BootstrapPagination</span><span class='op'>::</span><span class='const'>Rails</span><span class='rparen'>)</span>
302
321
  <span class='kw'>end</span></pre>
303
322
  </td>
304
323
  </tr>
@@ -310,7 +329,7 @@ method</p>
310
329
  </div>
311
330
 
312
331
  <div id="footer">
313
- Generated on Wed Jul 8 15:00:17 2015 by
332
+ Generated on Mon Aug 31 14:08:54 2015 by
314
333
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
315
334
  0.8.7.6 (ruby-1.9.3).
316
335
  </div>
@@ -180,7 +180,8 @@ method</p>
180
180
 
181
181
 
182
182
  <span class="summary_desc"><div class='inline'>
183
- <p>A new instance of TablePaginationPerPage.</p>
183
+ <p>Initialize per_page_field with component item per_page_field require
184
+ WillPaginate gem.</p>
184
185
  </div></span>
185
186
 
186
187
  </li>
@@ -203,7 +204,9 @@ method</p>
203
204
 
204
205
 
205
206
 
206
- <span class="summary_desc"><div class='inline'></div></span>
207
+ <span class="summary_desc"><div class='inline'>
208
+ <p>Render html tag.</p>
209
+ </div></span>
207
210
 
208
211
  </li>
209
212
 
@@ -239,7 +242,8 @@ method</p>
239
242
  </h3><div class="docstring">
240
243
  <div class="discussion">
241
244
 
242
- <p>Returns a new instance of TablePaginationPerPage</p>
245
+ <p>Initialize per_page_field with component item per_page_field require
246
+ WillPaginate gem</p>
243
247
 
244
248
 
245
249
  </div>
@@ -253,12 +257,12 @@ method</p>
253
257
  <pre class="lines">
254
258
 
255
259
 
256
- 28
257
- 29
258
- 30</pre>
260
+ 30
261
+ 31
262
+ 32</pre>
259
263
  </td>
260
264
  <td>
261
- <pre class="code"><span class="info file"># File 'lib/ui_bibz/ui/ux/table/table_pagination_per_page.rb', line 28</span>
265
+ <pre class="code"><span class="info file"># File 'lib/ui_bibz/ui/ux/table/table_pagination_per_page.rb', line 30</span>
262
266
 
263
267
  <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span> <span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_html_options'>html_options</span> <span class='op'>=</span> <span class='kw'>nil</span>
264
268
  <span class='ivar'>@per_page_field</span> <span class='op'>=</span> <span class='const'>UiBibz</span><span class='op'>::</span><span class='const'>Ui</span><span class='op'>::</span><span class='const'>Core</span><span class='op'>::</span><span class='const'>Component</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='comma'>,</span> <span class='id identifier rubyid_html_options'>html_options</span>
@@ -284,28 +288,39 @@ method</p>
284
288
 
285
289
 
286
290
 
287
- </h3><table class="source_code">
291
+ </h3><div class="docstring">
292
+ <div class="discussion">
293
+
294
+ <p>Render html tag</p>
295
+
296
+
297
+ </div>
298
+ </div>
299
+ <div class="tags">
300
+
301
+
302
+ </div><table class="source_code">
288
303
  <tr>
289
304
  <td>
290
305
  <pre class="lines">
291
306
 
292
307
 
293
- 32
294
- 33
295
- 34
296
308
  35
297
309
  36
298
310
  37
299
311
  38
300
312
  39
301
- 40</pre>
313
+ 40
314
+ 41
315
+ 42
316
+ 43</pre>
302
317
  </td>
303
318
  <td>
304
- <pre class="code"><span class="info file"># File 'lib/ui_bibz/ui/ux/table/table_pagination_per_page.rb', line 32</span>
319
+ <pre class="code"><span class="info file"># File 'lib/ui_bibz/ui/ux/table/table_pagination_per_page.rb', line 35</span>
305
320
 
306
321
  <span class='kw'>def</span> <span class='id identifier rubyid_render'>render</span>
307
322
  <span class='kw'>if</span> <span class='ivar'>@per_page_field</span><span class='period'>.</span><span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:wrap_form</span><span class='rbracket'>]</span> <span class='op'>!=</span> <span class='kw'>false</span>
308
- <span class='id identifier rubyid_form_tag'>form_tag</span><span class='lparen'>(</span><span class='id identifier rubyid_url_for'>url_for</span><span class='lparen'>(</span><span class='label'>controller:</span> <span class='id identifier rubyid_store'>store</span><span class='period'>.</span><span class='id identifier rubyid_controller'>controller</span><span class='comma'>,</span> <span class='label'>action:</span> <span class='id identifier rubyid_store'>store</span><span class='period'>.</span><span class='id identifier rubyid_action'>action</span><span class='rparen'>)</span><span class='comma'>,</span> <span class='label'>method:</span> <span class='symbol'>:get</span><span class='rparen'>)</span> <span class='kw'>do</span>
323
+ <span class='id identifier rubyid_form_tag'>form_tag</span><span class='lparen'>(</span><span class='id identifier rubyid_url_for'>url_for</span><span class='lparen'>(</span><span class='id identifier rubyid_url_parameters'>url_parameters</span><span class='rparen'>)</span><span class='comma'>,</span> <span class='label'>method:</span> <span class='symbol'>:get</span><span class='rparen'>)</span> <span class='kw'>do</span>
309
324
  <span class='id identifier rubyid_per_page_html'>per_page_html</span>
310
325
  <span class='kw'>end</span>
311
326
  <span class='kw'>else</span>
@@ -322,7 +337,7 @@ method</p>
322
337
  </div>
323
338
 
324
339
  <div id="footer">
325
- Generated on Wed Jul 8 15:00:19 2015 by
340
+ Generated on Mon Aug 31 14:08:55 2015 by
326
341
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
327
342
  0.8.7.6 (ruby-1.9.3).
328
343
  </div>
@@ -131,11 +131,16 @@ method</p>
131
131
  </li><li>
132
132
  <p><tt>url</tt> - String</p>
133
133
  </li><li>
134
- <p>tap - Boolean</p>
134
+ <p><tt>tap</tt> - Boolean</p>
135
135
  </li><li>
136
- <p>columns - Add column</p>
136
+ <p><tt>table_options</tt> - Hash</p>
137
+ <ul><li>
138
+ <p><tt>actionable</tt> - Boolean</p>
139
+ </li><li>
140
+ <p><tt>sortable</tt> - Boolean</p>
137
141
  </li><li>
138
- <p>actions - Add action by row</p>
142
+ <p><tt>searchable</tt> - Boolean</p>
143
+ </li></ul>
139
144
  </li></ul>
140
145
 
141
146
  <h4>Signatures</h4>
@@ -153,15 +158,15 @@ method</p>
153
158
 
154
159
  <h4>Examples</h4>
155
160
 
156
- <pre class="code ruby"><code class="ruby">UiBibz::Ui::Ux::TablePanel.new(store: @users, pagination).render
161
+ <pre class="code ruby"><code class="ruby">UiBibz::Ui::Ux::TablePanel.new(store: @users, table_options: { actionable: false }).render
157
162
 
158
163
  UiBibz::Ui::Ux::TablePanel.new(store: @users).tap do |t|
159
164
  t.header 'My Table panel'
160
165
  t.columns do |c|
161
- c.column '#', { data_index: 'id' }, { class: 'column-id' }
162
- c.column 'Name fr', { data_index: 'name_fr', link: edit_user_path(:id), order: 2 }
163
- c.column 'Name en', { data_index: 'name_en', order: 1 }
164
- c.column 'Name en', { data_index: 'name_en', format: lambda{ |records, record| &quot;name #{ record.id}&quot;} }
166
+ c.column :id, { name: '# }, { class: 'column-id' }
167
+ c.column :name_fr, { name: 'Name FR', link: edit_user_path(:id), order: 2 }
168
+ c.column :name_en
169
+ c.column :status_id, { name: 'Status', format: lambda{ |records, record| &quot;Test #{ record.id}&quot;} }
165
170
  end
166
171
  t.actions do |a|
167
172
  a.action 'toto', url: users_path(:id), glyph: 'eye'
@@ -241,7 +246,7 @@ end.render</code></pre>
241
246
 
242
247
 
243
248
  <span class="summary_desc"><div class='inline'>
244
- <p>Returns the value of attribute columns.</p>
249
+ <p>Add table columns item.</p>
245
250
  </div></span>
246
251
 
247
252
  </li>
@@ -287,7 +292,33 @@ end.render</code></pre>
287
292
 
288
293
 
289
294
 
290
- <span class="summary_desc"><div class='inline'></div></span>
295
+ <span class="summary_desc"><div class='inline'>
296
+ <p>Add table actions item.</p>
297
+ </div></span>
298
+
299
+ </li>
300
+
301
+
302
+ <li class="public ">
303
+ <span class="summary_signature">
304
+
305
+ <a href="#actions_list-instance_method" title="#actions_list (instance method)">- (Object) <strong>actions_list</strong> </a>
306
+
307
+
308
+
309
+ </span>
310
+
311
+
312
+
313
+
314
+
315
+
316
+
317
+
318
+
319
+ <span class="summary_desc"><div class='inline'>
320
+ <p>for test.</p>
321
+ </div></span>
291
322
 
292
323
  </li>
293
324
 
@@ -312,7 +343,7 @@ end.render</code></pre>
312
343
 
313
344
 
314
345
  <span class="summary_desc"><div class='inline'>
315
- <p>A new instance of TablePanel.</p>
346
+ <p>See UiBibz::Ui::Core::Component.initialize.</p>
316
347
  </div></span>
317
348
 
318
349
  </li>
@@ -335,7 +366,9 @@ end.render</code></pre>
335
366
 
336
367
 
337
368
 
338
- <span class="summary_desc"><div class='inline'></div></span>
369
+ <span class="summary_desc"><div class='inline'>
370
+ <p>Render html tag.</p>
371
+ </div></span>
339
372
 
340
373
  </li>
341
374
 
@@ -353,7 +386,7 @@ end.render</code></pre>
353
386
 
354
387
 
355
388
  <h3 class="inherited">Methods inherited from <span class='object_link'><a href="../Core/Panel.html" title="UiBibz::Ui::Core::Panel (class)">Core::Panel</a></span></h3>
356
- <p class="inherited"><span class='object_link'><a href="../Core/Panel.html#body-instance_method" title="UiBibz::Ui::Core::Panel#body (method)">#body</a></span>, <span class='object_link'><a href="../Core/Panel.html#body_html-instance_method" title="UiBibz::Ui::Core::Panel#body_html (method)">#body_html</a></span>, <span class='object_link'><a href="../Core/Panel.html#footer-instance_method" title="UiBibz::Ui::Core::Panel#footer (method)">#footer</a></span>, <span class='object_link'><a href="../Core/Panel.html#footer_html-instance_method" title="UiBibz::Ui::Core::Panel#footer_html (method)">#footer_html</a></span>, <span class='object_link'><a href="../Core/Panel.html#header-instance_method" title="UiBibz::Ui::Core::Panel#header (method)">#header</a></span>, <span class='object_link'><a href="../Core/Panel.html#header_html-instance_method" title="UiBibz::Ui::Core::Panel#header_html (method)">#header_html</a></span>, <span class='object_link'><a href="../Core/Panel.html#state-instance_method" title="UiBibz::Ui::Core::Panel#state (method)">#state</a></span></p>
389
+ <p class="inherited"><span class='object_link'><a href="../Core/Panel.html#body-instance_method" title="UiBibz::Ui::Core::Panel#body (method)">#body</a></span>, <span class='object_link'><a href="../Core/Panel.html#footer-instance_method" title="UiBibz::Ui::Core::Panel#footer (method)">#footer</a></span>, <span class='object_link'><a href="../Core/Panel.html#header-instance_method" title="UiBibz::Ui::Core::Panel#header (method)">#header</a></span></p>
357
390
 
358
391
 
359
392
 
@@ -364,7 +397,7 @@ end.render</code></pre>
364
397
 
365
398
 
366
399
  <h3 class="inherited">Methods inherited from <span class='object_link'><a href="../Core/Component.html" title="UiBibz::Ui::Core::Component (class)">Core::Component</a></span></h3>
367
- <p class="inherited"><span class='object_link'><a href="../Core/Component.html#add_classes-instance_method" title="UiBibz::Ui::Core::Component#add_classes (method)">#add_classes</a></span>, <span class='object_link'><a href="../Core/Component.html#badge_html-instance_method" title="UiBibz::Ui::Core::Component#badge_html (method)">#badge_html</a></span>, <span class='object_link'><a href="../Core/Component.html#class_and_html_options-instance_method" title="UiBibz::Ui::Core::Component#class_and_html_options (method)">#class_and_html_options</a></span>, <span class='object_link'><a href="../Core/Component.html#glyph-instance_method" title="UiBibz::Ui::Core::Component#glyph (method)">#glyph</a></span>, <span class='object_link'><a href="../Core/Component.html#glyph_and_content_html-instance_method" title="UiBibz::Ui::Core::Component#glyph_and_content_html (method)">#glyph_and_content_html</a></span>, <span class='object_link'><a href="../Core/Component.html#glyph_with_space-instance_method" title="UiBibz::Ui::Core::Component#glyph_with_space (method)">#glyph_with_space</a></span>, <span class='object_link'><a href="../Core/Component.html#options_in_html_options-instance_method" title="UiBibz::Ui::Core::Component#options_in_html_options (method)">#options_in_html_options</a></span>, <span class='object_link'><a href="../Core/Component.html#state-instance_method" title="UiBibz::Ui::Core::Component#state (method)">#state</a></span>, <span class='object_link'><a href="../Core/Component.html#states-instance_method" title="UiBibz::Ui::Core::Component#states (method)">#states</a></span>, <span class='object_link'><a href="../Core/Component.html#status-instance_method" title="UiBibz::Ui::Core::Component#status (method)">#status</a></span></p>
400
+ <p class="inherited"><span class='object_link'><a href="../Core/Component.html#add_classes-instance_method" title="UiBibz::Ui::Core::Component#add_classes (method)">#add_classes</a></span>, <span class='object_link'><a href="../Core/Component.html#badge_html-instance_method" title="UiBibz::Ui::Core::Component#badge_html (method)">#badge_html</a></span>, <span class='object_link'><a href="../Core/Component.html#class_and_html_options-instance_method" title="UiBibz::Ui::Core::Component#class_and_html_options (method)">#class_and_html_options</a></span>, <span class='object_link'><a href="../Core/Component.html#glyph-instance_method" title="UiBibz::Ui::Core::Component#glyph (method)">#glyph</a></span>, <span class='object_link'><a href="../Core/Component.html#glyph_and_content_html-instance_method" title="UiBibz::Ui::Core::Component#glyph_and_content_html (method)">#glyph_and_content_html</a></span>, <span class='object_link'><a href="../Core/Component.html#glyph_with_space-instance_method" title="UiBibz::Ui::Core::Component#glyph_with_space (method)">#glyph_with_space</a></span>, <span class='object_link'><a href="../Core/Component.html#state-instance_method" title="UiBibz::Ui::Core::Component#state (method)">#state</a></span></p>
368
401
 
369
402
 
370
403
 
@@ -392,7 +425,7 @@ end.render</code></pre>
392
425
  </h3><div class="docstring">
393
426
  <div class="discussion">
394
427
 
395
- <p>Returns a new instance of TablePanel</p>
428
+ <p>See UiBibz::Ui::Core::Component.initialize</p>
396
429
 
397
430
 
398
431
  </div>
@@ -406,15 +439,15 @@ end.render</code></pre>
406
439
  <pre class="lines">
407
440
 
408
441
 
409
- 95
410
- 96
411
- 97
412
442
  98
413
443
  99
414
- 100</pre>
444
+ 100
445
+ 101
446
+ 102
447
+ 103</pre>
415
448
  </td>
416
449
  <td>
417
- <pre class="code"><span class="info file"># File 'lib/ui_bibz/ui/ux/table/table_panel.rb', line 95</span>
450
+ <pre class="code"><span class="info file"># File 'lib/ui_bibz/ui/ux/table/table_panel.rb', line 98</span>
418
451
 
419
452
  <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span> <span class='id identifier rubyid_content'>content</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_html_options'>html_options</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='op'>&amp;</span><span class='id identifier rubyid_block'>block</span>
420
453
  <span class='kw'>super</span>
@@ -446,7 +479,7 @@ end.render</code></pre>
446
479
  </h3><div class="docstring">
447
480
  <div class="discussion">
448
481
 
449
- <p>Returns the value of attribute columns</p>
482
+ <p>Add table columns item</p>
450
483
 
451
484
 
452
485
  </div>
@@ -460,12 +493,12 @@ end.render</code></pre>
460
493
  <pre class="lines">
461
494
 
462
495
 
463
- 93
464
- 94
465
- 95</pre>
496
+ 121
497
+ 122
498
+ 123</pre>
466
499
  </td>
467
500
  <td>
468
- <pre class="code"><span class="info file"># File 'lib/ui_bibz/ui/ux/table/table_panel.rb', line 93</span>
501
+ <pre class="code"><span class="info file"># File 'lib/ui_bibz/ui/ux/table/table_panel.rb', line 121</span>
469
502
 
470
503
  <span class='kw'>def</span> <span class='id identifier rubyid_columns'>columns</span>
471
504
  <span class='ivar'>@columns</span>
@@ -491,18 +524,29 @@ end.render</code></pre>
491
524
 
492
525
 
493
526
 
494
- </h3><table class="source_code">
527
+ </h3><div class="docstring">
528
+ <div class="discussion">
529
+
530
+ <p>Add table actions item</p>
531
+
532
+
533
+ </div>
534
+ </div>
535
+ <div class="tags">
536
+
537
+
538
+ </div><table class="source_code">
495
539
  <tr>
496
540
  <td>
497
541
  <pre class="lines">
498
542
 
499
543
 
500
- 120
501
- 121
502
- 122</pre>
544
+ 126
545
+ 127
546
+ 128</pre>
503
547
  </td>
504
548
  <td>
505
- <pre class="code"><span class="info file"># File 'lib/ui_bibz/ui/ux/table/table_panel.rb', line 120</span>
549
+ <pre class="code"><span class="info file"># File 'lib/ui_bibz/ui/ux/table/table_panel.rb', line 126</span>
506
550
 
507
551
  <span class='kw'>def</span> <span class='id identifier rubyid_actions'>actions</span> <span class='op'>&amp;</span><span class='id identifier rubyid_block'>block</span>
508
552
  <span class='ivar'>@table</span><span class='period'>.</span><span class='id identifier rubyid_actions'>actions</span> <span class='op'>&amp;</span><span class='id identifier rubyid_block'>block</span>
@@ -510,6 +554,47 @@ end.render</code></pre>
510
554
  </td>
511
555
  </tr>
512
556
  </table>
557
+ </div>
558
+
559
+ <div class="method_details ">
560
+ <h3 class="signature " id="actions_list-instance_method">
561
+
562
+ - (<tt>Object</tt>) <strong>actions_list</strong>
563
+
564
+
565
+
566
+
567
+
568
+ </h3><div class="docstring">
569
+ <div class="discussion">
570
+
571
+ <p>for test</p>
572
+
573
+
574
+ </div>
575
+ </div>
576
+ <div class="tags">
577
+
578
+
579
+ </div><table class="source_code">
580
+ <tr>
581
+ <td>
582
+ <pre class="lines">
583
+
584
+
585
+ 131
586
+ 132
587
+ 133</pre>
588
+ </td>
589
+ <td>
590
+ <pre class="code"><span class="info file"># File 'lib/ui_bibz/ui/ux/table/table_panel.rb', line 131</span>
591
+
592
+ <span class='kw'>def</span> <span class='id identifier rubyid_actions_list'>actions_list</span>
593
+ <span class='ivar'>@table</span><span class='period'>.</span><span class='id identifier rubyid_actions_list'>actions_list</span>
594
+ <span class='kw'>end</span></pre>
595
+ </td>
596
+ </tr>
597
+ </table>
513
598
  </div>
514
599
 
515
600
  <div class="method_details ">
@@ -521,16 +606,23 @@ end.render</code></pre>
521
606
 
522
607
 
523
608
 
524
- </h3><table class="source_code">
609
+ </h3><div class="docstring">
610
+ <div class="discussion">
611
+
612
+ <p>Render html tag</p>
613
+
614
+
615
+ </div>
616
+ </div>
617
+ <div class="tags">
618
+
619
+
620
+ </div><table class="source_code">
525
621
  <tr>
526
622
  <td>
527
623
  <pre class="lines">
528
624
 
529
625
 
530
- 102
531
- 103
532
- 104
533
- 105
534
626
  106
535
627
  107
536
628
  108
@@ -539,21 +631,25 @@ end.render</code></pre>
539
631
  111
540
632
  112
541
633
  113
542
- 114</pre>
634
+ 114
635
+ 115
636
+ 116
637
+ 117
638
+ 118</pre>
543
639
  </td>
544
640
  <td>
545
- <pre class="code"><span class="info file"># File 'lib/ui_bibz/ui/ux/table/table_panel.rb', line 102</span>
641
+ <pre class="code"><span class="info file"># File 'lib/ui_bibz/ui/ux/table/table_panel.rb', line 106</span>
546
642
 
547
643
  <span class='kw'>def</span> <span class='id identifier rubyid_render'>render</span>
548
644
  <span class='id identifier rubyid_initialize_header'>initialize_header</span>
549
645
  <span class='id identifier rubyid_initialize_footer'>initialize_footer</span>
550
646
 
551
647
  <span class='id identifier rubyid_content_tag'>content_tag</span> <span class='symbol'>:div</span><span class='comma'>,</span> <span class='id identifier rubyid_class_and_html_options'>class_and_html_options</span><span class='lparen'>(</span><span class='id identifier rubyid_panel_classes'>panel_classes</span><span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_f'>f</span><span class='op'>|</span>
552
- <span class='id identifier rubyid_form_tag'>form_tag</span><span class='lparen'>(</span><span class='id identifier rubyid_url_for'>url_for</span><span class='lparen'>(</span><span class='label'>controller:</span> <span class='ivar'>@store</span><span class='period'>.</span><span class='id identifier rubyid_controller'>controller</span><span class='comma'>,</span> <span class='label'>action:</span> <span class='ivar'>@store</span><span class='period'>.</span><span class='id identifier rubyid_action'>action</span><span class='rparen'>)</span><span class='comma'>,</span> <span class='label'>method:</span> <span class='symbol'>:get</span><span class='rparen'>)</span> <span class='kw'>do</span>
553
- <span class='id identifier rubyid_concat'>concat</span><span class='lparen'>(</span><span class='id identifier rubyid_header_html'>header_html</span><span class='rparen'>)</span> <span class='kw'>unless</span> <span class='ivar'>@header</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
554
- <span class='id identifier rubyid_concat'>concat</span><span class='lparen'>(</span><span class='id identifier rubyid_body_html'>body_html</span><span class='rparen'>)</span> <span class='kw'>unless</span> <span class='ivar'>@body</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
555
- <span class='id identifier rubyid_concat'>concat</span><span class='lparen'>(</span><span class='id identifier rubyid_table_html'>table_html</span><span class='rparen'>)</span> <span class='kw'>unless</span> <span class='ivar'>@store</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
556
- <span class='id identifier rubyid_concat'>concat</span><span class='lparen'>(</span><span class='id identifier rubyid_footer_html'>footer_html</span><span class='rparen'>)</span> <span class='kw'>unless</span> <span class='ivar'>@footer</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
648
+ <span class='id identifier rubyid_form_tag'>form_tag</span><span class='lparen'>(</span><span class='id identifier rubyid_url_for'>url_for</span><span class='lparen'>(</span><span class='id identifier rubyid_url_parameters'>url_parameters</span><span class='rparen'>)</span><span class='comma'>,</span> <span class='label'>method:</span> <span class='symbol'>:get</span><span class='rparen'>)</span> <span class='kw'>do</span>
649
+ <span class='id identifier rubyid_concat'>concat</span><span class='lparen'>(</span><span class='id identifier rubyid_header_html'>header_html</span><span class='rparen'>)</span> <span class='kw'>unless</span> <span class='ivar'>@header</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
650
+ <span class='id identifier rubyid_concat'>concat</span><span class='lparen'>(</span><span class='id identifier rubyid_body_html'>body_html</span><span class='rparen'>)</span> <span class='kw'>unless</span> <span class='ivar'>@body</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
651
+ <span class='id identifier rubyid_concat'>concat</span><span class='lparen'>(</span><span class='id identifier rubyid_table_html'>table_html</span><span class='rparen'>)</span> <span class='kw'>unless</span> <span class='ivar'>@store</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
652
+ <span class='id identifier rubyid_concat'>concat</span><span class='lparen'>(</span><span class='id identifier rubyid_footer_html'>footer_html</span><span class='rparen'>)</span> <span class='kw'>unless</span> <span class='ivar'>@footer</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
557
653
  <span class='kw'>end</span>
558
654
  <span class='kw'>end</span>
559
655
  <span class='kw'>end</span></pre>
@@ -567,7 +663,7 @@ end.render</code></pre>
567
663
  </div>
568
664
 
569
665
  <div id="footer">
570
- Generated on Wed Jul 8 15:00:17 2015 by
666
+ Generated on Mon Aug 31 14:08:53 2015 by
571
667
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
572
668
  0.8.7.6 (ruby-1.9.3).
573
669
  </div>