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/UiBibz/Ui/Ux/Table.html
CHANGED
@@ -129,11 +129,13 @@ method</p>
|
|
129
129
|
</li><li>
|
130
130
|
<p><tt>url</tt> - String</p>
|
131
131
|
</li><li>
|
132
|
-
<p>tap - Boolean</p>
|
132
|
+
<p><tt>tap</tt> - Boolean</p>
|
133
133
|
</li><li>
|
134
|
-
<p>
|
134
|
+
<p><tt>actionable</tt> - Boolean</p>
|
135
135
|
</li><li>
|
136
|
-
<p>
|
136
|
+
<p><tt>sortable</tt> - Boolean</p>
|
137
|
+
</li><li>
|
138
|
+
<p><tt>searchable</tt> - Boolean</p>
|
137
139
|
</li></ul>
|
138
140
|
|
139
141
|
<h4>Signatures</h4>
|
@@ -142,7 +144,7 @@ method</p>
|
|
142
144
|
|
143
145
|
<span class='const'>UiBibz</span><span class='op'>::</span><span class='const'>Ui</span><span class='op'>::</span><span class='const'>Ux</span><span class='op'>::</span><span class='const'>Table</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='label'>store:</span> <span class='ivar'>@store</span><span class='comma'>,</span> <span class='label'>tap:</span> <span class='kw'>true</span><span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_t'>t</span><span class='op'>|</span>
|
144
146
|
<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_c'>c</span><span class='op'>|</span>
|
145
|
-
<span class='id identifier rubyid_c'>c</span><span class='period'>.</span><span class='id identifier rubyid_column'>column</span> <span class='
|
147
|
+
<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='label'>name:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>#</span><span class='tstring_end'>'</span></span>
|
146
148
|
<span class='kw'>end</span>
|
147
149
|
<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_a'>a</span><span class='op'>|</span>
|
148
150
|
<span class='id identifier rubyid_a'>a</span><span class='period'>.</span><span class='id identifier rubyid_action'>action</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='label'>url:</span> <span class='id identifier rubyid_url'>url</span><span class='comma'>,</span> <span class='label'>glyph:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_end'>'</span></span>
|
@@ -151,21 +153,21 @@ method</p>
|
|
151
153
|
|
152
154
|
<h4>Examples</h4>
|
153
155
|
|
154
|
-
<pre class="code ruby"><code class="ruby"
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
156
|
+
<pre class="code ruby"><code class="ruby">UiBibz::Ui::Ux::Table.new(store: @users).render
|
157
|
+
|
158
|
+
UiBibz::Ui::Ux::Table.new(store: @users).tap do |t|
|
159
|
+
t.columns do |c|
|
160
|
+
c.column :id, { name: '#' }
|
161
|
+
c.column :name_fr', { link: edit_user_path(:id), order: 2 }
|
162
|
+
c.column :name_en'
|
163
|
+
c.column :status_id, { name: 'Status', format: lambda{ |records, record| "Test #{ record.id}"} }
|
164
|
+
end
|
165
|
+
t.actions do |a|
|
166
|
+
a.action 'toto', url: users_path(:id), glyph: 'eye'
|
167
|
+
a.action '---'
|
168
|
+
a.action 'momo', url: users_path(:id), glyph: 'home'
|
169
|
+
end
|
170
|
+
end.render</code></pre>
|
169
171
|
|
170
172
|
<h4>Helper</h4>
|
171
173
|
|
@@ -220,7 +222,7 @@ method</p>
|
|
220
222
|
|
221
223
|
|
222
224
|
<span class="summary_desc"><div class='inline'>
|
223
|
-
<p>
|
225
|
+
<p>Add table columns items.</p>
|
224
226
|
</div></span>
|
225
227
|
|
226
228
|
</li>
|
@@ -249,28 +251,6 @@ method</p>
|
|
249
251
|
|
250
252
|
<ul class="summary">
|
251
253
|
|
252
|
-
<li class="protected ">
|
253
|
-
<span class="summary_signature">
|
254
|
-
|
255
|
-
<a href="#action-instance_method" title="#action (instance method)">- (Object) <strong>action</strong> </a>
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
</span>
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
<span class="note title protected">protected</span>
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
270
|
-
|
271
|
-
</li>
|
272
|
-
|
273
|
-
|
274
254
|
<li class="public ">
|
275
255
|
<span class="summary_signature">
|
276
256
|
|
@@ -288,15 +268,17 @@ method</p>
|
|
288
268
|
|
289
269
|
|
290
270
|
|
291
|
-
<span class="summary_desc"><div class='inline'
|
271
|
+
<span class="summary_desc"><div class='inline'>
|
272
|
+
<p>Add table actions items.</p>
|
273
|
+
</div></span>
|
292
274
|
|
293
275
|
</li>
|
294
276
|
|
295
277
|
|
296
|
-
<li class="
|
278
|
+
<li class="public ">
|
297
279
|
<span class="summary_signature">
|
298
280
|
|
299
|
-
<a href="#
|
281
|
+
<a href="#actions_list-instance_method" title="#actions_list (instance method)">- (Object) <strong>actions_list</strong> </a>
|
300
282
|
|
301
283
|
|
302
284
|
|
@@ -304,13 +286,15 @@ method</p>
|
|
304
286
|
|
305
287
|
|
306
288
|
|
307
|
-
|
289
|
+
|
308
290
|
|
309
291
|
|
310
292
|
|
311
293
|
|
312
294
|
|
313
|
-
<span class="summary_desc"><div class='inline'
|
295
|
+
<span class="summary_desc"><div class='inline'>
|
296
|
+
<p>for test.</p>
|
297
|
+
</div></span>
|
314
298
|
|
315
299
|
</li>
|
316
300
|
|
@@ -335,7 +319,7 @@ method</p>
|
|
335
319
|
|
336
320
|
|
337
321
|
<span class="summary_desc"><div class='inline'>
|
338
|
-
<p>
|
322
|
+
<p>See UiBibz::Ui::Core::Component.initialize.</p>
|
339
323
|
</div></span>
|
340
324
|
|
341
325
|
</li>
|
@@ -358,29 +342,9 @@ method</p>
|
|
358
342
|
|
359
343
|
|
360
344
|
|
361
|
-
<span class="summary_desc"><div class='inline'
|
362
|
-
|
363
|
-
</
|
364
|
-
|
365
|
-
|
366
|
-
<li class="protected ">
|
367
|
-
<span class="summary_signature">
|
368
|
-
|
369
|
-
<a href="#sort-instance_method" title="#sort (instance method)">- (Object) <strong>sort</strong> </a>
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
</span>
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
<span class="note title protected">protected</span>
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
345
|
+
<span class="summary_desc"><div class='inline'>
|
346
|
+
<p>Render html tag.</p>
|
347
|
+
</div></span>
|
384
348
|
|
385
349
|
</li>
|
386
350
|
|
@@ -402,76 +366,10 @@ method</p>
|
|
402
366
|
|
403
367
|
|
404
368
|
|
405
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
406
|
-
|
407
|
-
</li>
|
408
|
-
|
409
|
-
|
410
|
-
<li class="protected ">
|
411
|
-
<span class="summary_signature">
|
412
|
-
|
413
|
-
<a href="#table_html-instance_method" title="#table_html (instance method)">- (Object) <strong>table_html</strong> </a>
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
</span>
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
<span class="note title protected">protected</span>
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
428
|
-
|
429
|
-
</li>
|
430
|
-
|
431
|
-
|
432
|
-
<li class="protected ">
|
433
|
-
<span class="summary_signature">
|
434
|
-
|
435
|
-
<a href="#td_content-instance_method" title="#td_content (instance method)">- (Object) <strong>td_content</strong>(record, col) </a>
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
</span>
|
440
|
-
|
441
|
-
|
442
|
-
|
443
|
-
<span class="note title protected">protected</span>
|
444
|
-
|
445
|
-
|
446
|
-
|
447
|
-
|
448
|
-
|
449
369
|
<span class="summary_desc"><div class='inline'>
|
450
|
-
<p>
|
370
|
+
<p>Store must be generated by <b>table_search_pagination</b> method.</p>
|
451
371
|
</div></span>
|
452
372
|
|
453
|
-
</li>
|
454
|
-
|
455
|
-
|
456
|
-
<li class="protected ">
|
457
|
-
<span class="summary_signature">
|
458
|
-
|
459
|
-
<a href="#type-instance_method" title="#type (instance method)">- (Object) <strong>type</strong> </a>
|
460
|
-
|
461
|
-
|
462
|
-
|
463
|
-
</span>
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
<span class="note title protected">protected</span>
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
474
|
-
|
475
373
|
</li>
|
476
374
|
|
477
375
|
|
@@ -488,7 +386,7 @@ method</p>
|
|
488
386
|
|
489
387
|
|
490
388
|
<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>
|
491
|
-
<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#
|
389
|
+
<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>
|
492
390
|
|
493
391
|
|
494
392
|
|
@@ -516,7 +414,7 @@ method</p>
|
|
516
414
|
</h3><div class="docstring">
|
517
415
|
<div class="discussion">
|
518
416
|
|
519
|
-
<p>
|
417
|
+
<p>See UiBibz::Ui::Core::Component.initialize</p>
|
520
418
|
|
521
419
|
|
522
420
|
</div>
|
@@ -530,14 +428,14 @@ method</p>
|
|
530
428
|
<pre class="lines">
|
531
429
|
|
532
430
|
|
533
|
-
85
|
534
|
-
86
|
535
431
|
87
|
536
432
|
88
|
537
|
-
89
|
433
|
+
89
|
434
|
+
90
|
435
|
+
91</pre>
|
538
436
|
</td>
|
539
437
|
<td>
|
540
|
-
<pre class="code"><span class="info file"># File 'lib/ui_bibz/ui/ux/table/table.rb', line
|
438
|
+
<pre class="code"><span class="info file"># File 'lib/ui_bibz/ui/ux/table/table.rb', line 87</span>
|
541
439
|
|
542
440
|
<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'>&</span><span class='id identifier rubyid_block'>block</span>
|
543
441
|
<span class='kw'>super</span>
|
@@ -568,7 +466,7 @@ method</p>
|
|
568
466
|
</h3><div class="docstring">
|
569
467
|
<div class="discussion">
|
570
468
|
|
571
|
-
<p>
|
469
|
+
<p>Add table columns items</p>
|
572
470
|
|
573
471
|
|
574
472
|
</div>
|
@@ -582,12 +480,12 @@ method</p>
|
|
582
480
|
<pre class="lines">
|
583
481
|
|
584
482
|
|
585
|
-
|
586
|
-
|
587
|
-
|
483
|
+
94
|
484
|
+
95
|
485
|
+
96</pre>
|
588
486
|
</td>
|
589
487
|
<td>
|
590
|
-
<pre class="code"><span class="info file"># File 'lib/ui_bibz/ui/ux/table/table.rb', line
|
488
|
+
<pre class="code"><span class="info file"># File 'lib/ui_bibz/ui/ux/table/table.rb', line 94</span>
|
591
489
|
|
592
490
|
<span class='kw'>def</span> <span class='id identifier rubyid_columns'>columns</span>
|
593
491
|
<span class='ivar'>@columns</span>
|
@@ -605,56 +503,37 @@ method</p>
|
|
605
503
|
|
606
504
|
|
607
505
|
<div class="method_details first">
|
608
|
-
<h3 class="signature first" id="
|
506
|
+
<h3 class="signature first" id="actions-instance_method">
|
609
507
|
|
610
|
-
- (<tt>Object</tt>) <strong>
|
508
|
+
- (<tt>Object</tt>) <strong>actions</strong>(&block)
|
611
509
|
|
612
510
|
|
613
511
|
|
614
512
|
|
615
513
|
|
616
|
-
</h3><
|
617
|
-
<
|
618
|
-
|
619
|
-
|
620
|
-
|
514
|
+
</h3><div class="docstring">
|
515
|
+
<div class="discussion">
|
516
|
+
|
517
|
+
<p>Add table actions items</p>
|
621
518
|
|
622
|
-
119
|
623
|
-
120
|
624
|
-
121</pre>
|
625
|
-
</td>
|
626
|
-
<td>
|
627
|
-
<pre class="code"><span class="info file"># File 'lib/ui_bibz/ui/ux/table/table.rb', line 119</span>
|
628
519
|
|
629
|
-
|
630
|
-
<span class='ivar'>@action</span> <span class='op'>||=</span> <span class='const'>Actionable</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span> <span class='id identifier rubyid_store'>store</span><span class='comma'>,</span> <span class='ivar'>@options</span><span class='comma'>,</span> <span class='ivar'>@actions</span>
|
631
|
-
<span class='kw'>end</span></pre>
|
632
|
-
</td>
|
633
|
-
</tr>
|
634
|
-
</table>
|
520
|
+
</div>
|
635
521
|
</div>
|
636
|
-
|
637
|
-
<div class="method_details ">
|
638
|
-
<h3 class="signature " id="actions-instance_method">
|
639
|
-
|
640
|
-
- (<tt>Object</tt>) <strong>actions</strong>(&block)
|
641
|
-
|
642
|
-
|
522
|
+
<div class="tags">
|
643
523
|
|
644
524
|
|
645
|
-
|
646
|
-
</h3><table class="source_code">
|
525
|
+
</div><table class="source_code">
|
647
526
|
<tr>
|
648
527
|
<td>
|
649
528
|
<pre class="lines">
|
650
529
|
|
651
530
|
|
652
|
-
|
653
|
-
|
654
|
-
|
531
|
+
99
|
532
|
+
100
|
533
|
+
101</pre>
|
655
534
|
</td>
|
656
535
|
<td>
|
657
|
-
<pre class="code"><span class="info file"># File 'lib/ui_bibz/ui/ux/table/table.rb', line
|
536
|
+
<pre class="code"><span class="info file"># File 'lib/ui_bibz/ui/ux/table/table.rb', line 99</span>
|
658
537
|
|
659
538
|
<span class='kw'>def</span> <span class='id identifier rubyid_actions'>actions</span> <span class='op'>&</span><span class='id identifier rubyid_block'>block</span>
|
660
539
|
<span class='ivar'>@actions</span><span class='period'>.</span><span class='id identifier rubyid_tap'>tap</span><span class='lparen'>(</span><span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
@@ -665,59 +544,40 @@ method</p>
|
|
665
544
|
</div>
|
666
545
|
|
667
546
|
<div class="method_details ">
|
668
|
-
<h3 class="signature " id="
|
547
|
+
<h3 class="signature " id="actions_list-instance_method">
|
669
548
|
|
670
|
-
- (<tt>Object</tt>) <strong>
|
549
|
+
- (<tt>Object</tt>) <strong>actions_list</strong>
|
671
550
|
|
672
551
|
|
673
552
|
|
674
553
|
|
675
554
|
|
676
|
-
</h3><
|
677
|
-
<
|
678
|
-
|
679
|
-
|
680
|
-
|
555
|
+
</h3><div class="docstring">
|
556
|
+
<div class="discussion">
|
557
|
+
|
558
|
+
<p>for test</p>
|
681
559
|
|
682
|
-
123
|
683
|
-
124
|
684
|
-
125</pre>
|
685
|
-
</td>
|
686
|
-
<td>
|
687
|
-
<pre class="code"><span class="info file"># File 'lib/ui_bibz/ui/ux/table/table.rb', line 123</span>
|
688
560
|
|
689
|
-
|
690
|
-
<span class='ivar'>@columns</span><span class='period'>.</span><span class='id identifier rubyid_list'>list</span><span class='period'>.</span><span class='id identifier rubyid_empty?'>empty?</span> <span class='op'>?</span> <span class='id identifier rubyid_store'>store</span><span class='period'>.</span><span class='id identifier rubyid_columns'>columns</span><span class='period'>.</span><span class='id identifier rubyid_list'>list</span> <span class='op'>:</span> <span class='ivar'>@columns</span><span class='period'>.</span><span class='id identifier rubyid_list'>list</span>
|
691
|
-
<span class='kw'>end</span></pre>
|
692
|
-
</td>
|
693
|
-
</tr>
|
694
|
-
</table>
|
561
|
+
</div>
|
695
562
|
</div>
|
696
|
-
|
697
|
-
<div class="method_details ">
|
698
|
-
<h3 class="signature " id="render-instance_method">
|
699
|
-
|
700
|
-
- (<tt>Object</tt>) <strong>render</strong>
|
701
|
-
|
702
|
-
|
563
|
+
<div class="tags">
|
703
564
|
|
704
565
|
|
705
|
-
|
706
|
-
</h3><table class="source_code">
|
566
|
+
</div><table class="source_code">
|
707
567
|
<tr>
|
708
568
|
<td>
|
709
569
|
<pre class="lines">
|
710
570
|
|
711
571
|
|
712
|
-
|
713
|
-
|
714
|
-
|
572
|
+
104
|
573
|
+
105
|
574
|
+
106</pre>
|
715
575
|
</td>
|
716
576
|
<td>
|
717
|
-
<pre class="code"><span class="info file"># File 'lib/ui_bibz/ui/ux/table/table.rb', line
|
577
|
+
<pre class="code"><span class="info file"># File 'lib/ui_bibz/ui/ux/table/table.rb', line 104</span>
|
718
578
|
|
719
|
-
<span class='kw'>def</span> <span class='id identifier
|
720
|
-
<span class='
|
579
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_actions_list'>actions_list</span>
|
580
|
+
<span class='ivar'>@actions</span>
|
721
581
|
<span class='kw'>end</span></pre>
|
722
582
|
</td>
|
723
583
|
</tr>
|
@@ -725,135 +585,40 @@ method</p>
|
|
725
585
|
</div>
|
726
586
|
|
727
587
|
<div class="method_details ">
|
728
|
-
<h3 class="signature " id="
|
588
|
+
<h3 class="signature " id="render-instance_method">
|
729
589
|
|
730
|
-
- (<tt>Object</tt>) <strong>
|
590
|
+
- (<tt>Object</tt>) <strong>render</strong>
|
731
591
|
|
732
592
|
|
733
593
|
|
734
594
|
|
735
595
|
|
736
|
-
</h3><
|
737
|
-
<
|
738
|
-
|
739
|
-
|
596
|
+
</h3><div class="docstring">
|
597
|
+
<div class="discussion">
|
598
|
+
|
599
|
+
<p>Render html tag</p>
|
740
600
|
|
741
601
|
|
742
|
-
|
743
|
-
116
|
744
|
-
117</pre>
|
745
|
-
</td>
|
746
|
-
<td>
|
747
|
-
<pre class="code"><span class="info file"># File 'lib/ui_bibz/ui/ux/table/table.rb', line 115</span>
|
748
|
-
|
749
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_sort'>sort</span>
|
750
|
-
<span class='ivar'>@sort</span> <span class='op'>||=</span> <span class='const'>Sortable</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span> <span class='id identifier rubyid_store'>store</span><span class='comma'>,</span> <span class='ivar'>@options</span>
|
751
|
-
<span class='kw'>end</span></pre>
|
752
|
-
</td>
|
753
|
-
</tr>
|
754
|
-
</table>
|
602
|
+
</div>
|
755
603
|
</div>
|
756
|
-
|
757
|
-
<div class="method_details ">
|
758
|
-
<h3 class="signature " id="store-instance_method">
|
759
|
-
|
760
|
-
- (<tt>Object</tt>) <strong>store</strong>
|
761
|
-
|
762
|
-
|
604
|
+
<div class="tags">
|
763
605
|
|
764
606
|
|
765
|
-
|
766
|
-
</h3><table class="source_code">
|
607
|
+
</div><table class="source_code">
|
767
608
|
<tr>
|
768
609
|
<td>
|
769
610
|
<pre class="lines">
|
770
611
|
|
771
612
|
|
772
|
-
103
|
773
|
-
104
|
774
|
-
105
|
775
|
-
106
|
776
|
-
107
|
777
|
-
108
|
778
613
|
109
|
779
614
|
110
|
780
615
|
111</pre>
|
781
616
|
</td>
|
782
617
|
<td>
|
783
|
-
<pre class="code"><span class="info file"># File 'lib/ui_bibz/ui/ux/table/table.rb', line
|
618
|
+
<pre class="code"><span class="info file"># File 'lib/ui_bibz/ui/ux/table/table.rb', line 109</span>
|
784
619
|
|
785
|
-
<span class='kw'>def</span> <span class='id identifier
|
786
|
-
<span class='
|
787
|
-
<span class='id identifier rubyid_raise'>raise</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Store is nil!</span><span class='tstring_end'>'</span></span>
|
788
|
-
<span class='kw'>elsif</span> <span class='ivar'>@options</span><span class='lbracket'>[</span><span class='symbol'>:store</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_try'>try</span><span class='lparen'>(</span><span class='symbol'>:records</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
789
|
-
<span class='id identifier rubyid_raise'>raise</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Store can be created only with "table_search_pagination" method!</span><span class='tstring_end'>'</span></span>
|
790
|
-
<span class='kw'>else</span>
|
791
|
-
<span class='const'>Store</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span> <span class='ivar'>@options</span><span class='period'>.</span><span class='id identifier rubyid_delete'>delete</span> <span class='symbol'>:store</span>
|
792
|
-
<span class='kw'>end</span>
|
793
|
-
<span class='kw'>end</span></pre>
|
794
|
-
</td>
|
795
|
-
</tr>
|
796
|
-
</table>
|
797
|
-
</div>
|
798
|
-
|
799
|
-
<div class="method_details ">
|
800
|
-
<h3 class="signature " id="table_html-instance_method">
|
801
|
-
|
802
|
-
- (<tt>Object</tt>) <strong>table_html</strong> <span class="extras">(protected)</span>
|
803
|
-
|
804
|
-
|
805
|
-
|
806
|
-
|
807
|
-
|
808
|
-
</h3><table class="source_code">
|
809
|
-
<tr>
|
810
|
-
<td>
|
811
|
-
<pre class="lines">
|
812
|
-
|
813
|
-
|
814
|
-
131
|
815
|
-
132
|
816
|
-
133
|
817
|
-
134
|
818
|
-
135
|
819
|
-
136
|
820
|
-
137
|
821
|
-
138
|
822
|
-
139
|
823
|
-
140
|
824
|
-
141
|
825
|
-
142
|
826
|
-
143
|
827
|
-
144
|
828
|
-
145
|
829
|
-
146
|
830
|
-
147
|
831
|
-
148
|
832
|
-
149
|
833
|
-
150</pre>
|
834
|
-
</td>
|
835
|
-
<td>
|
836
|
-
<pre class="code"><span class="info file"># File 'lib/ui_bibz/ui/ux/table/table.rb', line 131</span>
|
837
|
-
|
838
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_table_html'>table_html</span>
|
839
|
-
<span class='id identifier rubyid_content_tag'>content_tag</span><span class='lparen'>(</span><span class='symbol'>:table</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='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>table</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='id identifier rubyid_type'>type</span><span class='rbracket'>]</span><span class='rparen'>)</span><span class='rparen'>)</span> <span class='kw'>do</span>
|
840
|
-
|
841
|
-
<span class='id identifier rubyid_ths'>ths</span> <span class='op'>=</span> <span class='id identifier rubyid_cols'>cols</span><span class='period'>.</span><span class='id identifier rubyid_collect'>collect</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_col'>col</span><span class='op'>|</span>
|
842
|
-
<span class='id identifier rubyid_content_tag'>content_tag</span><span class='lparen'>(</span><span class='symbol'>:th</span><span class='comma'>,</span> <span class='id identifier rubyid_sort'>sort</span><span class='period'>.</span><span class='id identifier rubyid_header'>header</span><span class='lparen'>(</span><span class='id identifier rubyid_col'>col</span><span class='rparen'>)</span><span class='rparen'>)</span> <span class='kw'>unless</span> <span class='id identifier rubyid_col'>col</span><span class='period'>.</span><span class='id identifier rubyid_hidden?'>hidden?</span>
|
843
|
-
<span class='kw'>end</span>
|
844
|
-
|
845
|
-
<span class='id identifier rubyid_ths'>ths</span> <span class='op'>=</span> <span class='id identifier rubyid_action'>action</span><span class='period'>.</span><span class='id identifier rubyid_header'>header</span> <span class='id identifier rubyid_ths'>ths</span>
|
846
|
-
<span class='id identifier rubyid_concat'>concat</span> <span class='id identifier rubyid_content_tag'>content_tag</span><span class='lparen'>(</span><span class='symbol'>:tr</span><span class='comma'>,</span> <span class='id identifier rubyid_ths'>ths</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span><span class='period'>.</span><span class='id identifier rubyid_html_safe'>html_safe</span><span class='rparen'>)</span>
|
847
|
-
|
848
|
-
<span class='id identifier rubyid_store'>store</span><span class='period'>.</span><span class='id identifier rubyid_records'>records</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_record'>record</span><span class='op'>|</span>
|
849
|
-
<span class='id identifier rubyid_tds'>tds</span> <span class='op'>=</span> <span class='id identifier rubyid_cols'>cols</span><span class='period'>.</span><span class='id identifier rubyid_collect'>collect</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_col'>col</span><span class='op'>|</span>
|
850
|
-
<span class='id identifier rubyid_content_tag'>content_tag</span><span class='lparen'>(</span><span class='symbol'>:td</span><span class='comma'>,</span> <span class='id identifier rubyid_td_content'>td_content</span><span class='lparen'>(</span><span class='id identifier rubyid_record'>record</span><span class='comma'>,</span> <span class='id identifier rubyid_col'>col</span><span class='rparen'>)</span><span class='rparen'>)</span> <span class='kw'>unless</span> <span class='id identifier rubyid_col'>col</span><span class='period'>.</span><span class='id identifier rubyid_hidden?'>hidden?</span>
|
851
|
-
<span class='kw'>end</span>
|
852
|
-
|
853
|
-
<span class='id identifier rubyid_tds'>tds</span> <span class='op'>=</span> <span class='id identifier rubyid_action'>action</span><span class='period'>.</span><span class='id identifier rubyid_body'>body</span> <span class='id identifier rubyid_record'>record</span><span class='comma'>,</span> <span class='id identifier rubyid_tds'>tds</span>
|
854
|
-
<span class='id identifier rubyid_concat'>concat</span> <span class='id identifier rubyid_content_tag'>content_tag</span> <span class='symbol'>:tr</span><span class='comma'>,</span> <span class='id identifier rubyid_tds'>tds</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span><span class='period'>.</span><span class='id identifier rubyid_html_safe'>html_safe</span>
|
855
|
-
<span class='kw'>end</span>
|
856
|
-
<span class='kw'>end</span>
|
620
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_render'>render</span>
|
621
|
+
<span class='id identifier rubyid_table_html'>table_html</span>
|
857
622
|
<span class='kw'>end</span></pre>
|
858
623
|
</td>
|
859
624
|
</tr>
|
@@ -861,9 +626,9 @@ method</p>
|
|
861
626
|
</div>
|
862
627
|
|
863
628
|
<div class="method_details ">
|
864
|
-
<h3 class="signature " id="
|
629
|
+
<h3 class="signature " id="store-instance_method">
|
865
630
|
|
866
|
-
- (<tt>Object</tt>) <strong>
|
631
|
+
- (<tt>Object</tt>) <strong>store</strong>
|
867
632
|
|
868
633
|
|
869
634
|
|
@@ -872,7 +637,7 @@ method</p>
|
|
872
637
|
</h3><div class="docstring">
|
873
638
|
<div class="discussion">
|
874
639
|
|
875
|
-
<p>
|
640
|
+
<p>Store must be generated by <b>table_search_pagination</b> method</p>
|
876
641
|
|
877
642
|
|
878
643
|
</div>
|
@@ -886,57 +651,27 @@ method</p>
|
|
886
651
|
<pre class="lines">
|
887
652
|
|
888
653
|
|
889
|
-
|
890
|
-
|
891
|
-
|
892
|
-
|
893
|
-
|
894
|
-
|
895
|
-
|
896
|
-
|
897
|
-
|
898
|
-
</td>
|
899
|
-
<td>
|
900
|
-
<pre class="code"><span class="info file"># File 'lib/ui_bibz/ui/ux/table/table.rb', line 153</span>
|
901
|
-
|
902
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_td_content'>td_content</span> <span class='id identifier rubyid_record'>record</span><span class='comma'>,</span> <span class='id identifier rubyid_col'>col</span>
|
903
|
-
<span class='id identifier rubyid_content'>content</span> <span class='op'>=</span> <span class='id identifier rubyid_col'>col</span><span class='period'>.</span><span class='id identifier rubyid_count'>count</span> <span class='op'>?</span> <span class='id identifier rubyid_record'>record</span><span class='period'>.</span><span class='id identifier rubyid_send'>send</span><span class='lparen'>(</span><span class='id identifier rubyid_col'>col</span><span class='period'>.</span><span class='id identifier rubyid_data_index'>data_index</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_count'>count</span> <span class='op'>:</span> <span class='id identifier rubyid_record'>record</span><span class='period'>.</span><span class='id identifier rubyid_send'>send</span><span class='lparen'>(</span><span class='id identifier rubyid_col'>col</span><span class='period'>.</span><span class='id identifier rubyid_data_index'>data_index</span><span class='rparen'>)</span>
|
904
|
-
<span class='kw'>unless</span> <span class='id identifier rubyid_content'>content</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
905
|
-
<span class='id identifier rubyid_content'>content</span> <span class='op'>=</span> <span class='id identifier rubyid_content'>content</span><span class='period'>.</span><span class='id identifier rubyid_strftime'>strftime</span><span class='lparen'>(</span><span class='id identifier rubyid_col'>col</span><span class='period'>.</span><span class='id identifier rubyid_date_format'>date_format</span><span class='rparen'>)</span> <span class='kw'>unless</span> <span class='id identifier rubyid_col'>col</span><span class='period'>.</span><span class='id identifier rubyid_date_format'>date_format</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
906
|
-
<span class='id identifier rubyid_content'>content</span> <span class='op'>=</span> <span class='id identifier rubyid_link_to'>link_to</span> <span class='id identifier rubyid_content'>content</span><span class='comma'>,</span> <span class='id identifier rubyid_action'>action</span><span class='period'>.</span><span class='id identifier rubyid_inject_url'>inject_url</span><span class='lparen'>(</span><span class='id identifier rubyid_col'>col</span><span class='period'>.</span><span class='id identifier rubyid_link'>link</span><span class='comma'>,</span> <span class='id identifier rubyid_record'>record</span><span class='rparen'>)</span> <span class='kw'>unless</span> <span class='id identifier rubyid_col'>col</span><span class='period'>.</span><span class='id identifier rubyid_link'>link</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
907
|
-
<span class='id identifier rubyid_content'>content</span> <span class='op'>=</span> <span class='id identifier rubyid_col'>col</span><span class='period'>.</span><span class='id identifier rubyid_format'>format</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span><span class='lparen'>(</span><span class='ivar'>@store</span><span class='period'>.</span><span class='id identifier rubyid_records'>records</span><span class='comma'>,</span> <span class='id identifier rubyid_record'>record</span><span class='rparen'>)</span> <span class='kw'>unless</span> <span class='id identifier rubyid_col'>col</span><span class='period'>.</span><span class='id identifier rubyid_format'>format</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
908
|
-
<span class='id identifier rubyid_content'>content</span>
|
909
|
-
<span class='kw'>end</span>
|
910
|
-
<span class='kw'>end</span></pre>
|
911
|
-
</td>
|
912
|
-
</tr>
|
913
|
-
</table>
|
914
|
-
</div>
|
915
|
-
|
916
|
-
<div class="method_details ">
|
917
|
-
<h3 class="signature " id="type-instance_method">
|
918
|
-
|
919
|
-
- (<tt>Object</tt>) <strong>type</strong> <span class="extras">(protected)</span>
|
920
|
-
|
921
|
-
|
922
|
-
|
923
|
-
|
924
|
-
|
925
|
-
</h3><table class="source_code">
|
926
|
-
<tr>
|
927
|
-
<td>
|
928
|
-
<pre class="lines">
|
929
|
-
|
930
|
-
|
931
|
-
127
|
932
|
-
128
|
933
|
-
129</pre>
|
654
|
+
114
|
655
|
+
115
|
656
|
+
116
|
657
|
+
117
|
658
|
+
118
|
659
|
+
119
|
660
|
+
120
|
661
|
+
121
|
662
|
+
122</pre>
|
934
663
|
</td>
|
935
664
|
<td>
|
936
|
-
<pre class="code"><span class="info file"># File 'lib/ui_bibz/ui/ux/table/table.rb', line
|
665
|
+
<pre class="code"><span class="info file"># File 'lib/ui_bibz/ui/ux/table/table.rb', line 114</span>
|
937
666
|
|
938
|
-
<span class='kw'>def</span> <span class='id identifier
|
939
|
-
<span class='
|
667
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_store'>store</span>
|
668
|
+
<span class='ivar'>@store</span> <span class='op'>||=</span> <span class='kw'>if</span> <span class='ivar'>@options</span><span class='lbracket'>[</span><span class='symbol'>:store</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
669
|
+
<span class='id identifier rubyid_raise'>raise</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Store is nil!</span><span class='tstring_end'>'</span></span>
|
670
|
+
<span class='kw'>elsif</span> <span class='ivar'>@options</span><span class='lbracket'>[</span><span class='symbol'>:store</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_try'>try</span><span class='lparen'>(</span><span class='symbol'>:records</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
671
|
+
<span class='id identifier rubyid_raise'>raise</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Store can be created only with "table_search_pagination" method!</span><span class='tstring_end'>'</span></span>
|
672
|
+
<span class='kw'>else</span>
|
673
|
+
<span class='const'>Store</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span> <span class='ivar'>@options</span><span class='period'>.</span><span class='id identifier rubyid_delete'>delete</span> <span class='symbol'>:store</span>
|
674
|
+
<span class='kw'>end</span>
|
940
675
|
<span class='kw'>end</span></pre>
|
941
676
|
</td>
|
942
677
|
</tr>
|
@@ -948,7 +683,7 @@ method</p>
|
|
948
683
|
</div>
|
949
684
|
|
950
685
|
<div id="footer">
|
951
|
-
Generated on
|
686
|
+
Generated on Mon Aug 31 14:08:53 2015 by
|
952
687
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
953
688
|
0.8.7.6 (ruby-1.9.3).
|
954
689
|
</div>
|