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.
- 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
@@ -158,7 +158,7 @@ end</code></pre>
|
|
158
158
|
|
159
159
|
</div><div id="subclasses">
|
160
160
|
<h2>Direct Known Subclasses</h2>
|
161
|
-
<p class="children"><span class='object_link'><a href="Alert.html" title="UiBibz::Ui::Core::Alert (class)">Alert</a></span>, <span class='object_link'><a href="Bar.html" title="UiBibz::Ui::Core::Bar (class)">Bar</a></span>, <span class='object_link'><a href="Breadcrumb.html" title="UiBibz::Ui::Core::Breadcrumb (class)">Breadcrumb</a></span>, <span class='object_link'><a href="BreadcrumbLink.html" title="UiBibz::Ui::Core::BreadcrumbLink (class)">BreadcrumbLink</a></span>, <span class='object_link'><a href="Button.html" title="UiBibz::Ui::Core::Button (class)">Button</a></span>, <span class='object_link'><a href="ButtonGroup.html" title="UiBibz::Ui::Core::ButtonGroup (class)">ButtonGroup</a></span>, <span class='object_link'><a href="ButtonLink.html" title="UiBibz::Ui::Core::ButtonLink (class)">ButtonLink</a></span>, <span class='object_link'><a href="Col.html" title="UiBibz::Ui::Core::Col (class)">Col</a></span>, <span class='object_link'><a href="Dropdown.html" title="UiBibz::Ui::Core::Dropdown (class)">Dropdown</a></span>, <span class='object_link'><a href="DropdownList.html" title="UiBibz::Ui::Core::DropdownList (class)">DropdownList</a></span>, <span class='object_link'><a href="Glyph.html" title="UiBibz::Ui::Core::Glyph (class)">Glyph</a></span>, <span class='object_link'><a href="Jumbotron.html" title="UiBibz::Ui::Core::Jumbotron (class)">Jumbotron</a></span>, <span class='object_link'><a href="Label.html" title="UiBibz::Ui::Core::Label (class)">Label</a></span>, <span class='object_link'><a href="List.html" title="UiBibz::Ui::Core::List (class)">List</a></span>, <span class='object_link'><a href="ListGroup.html" title="UiBibz::Ui::Core::ListGroup (class)">ListGroup</a></span>, <span class='object_link'><a href="Nav.html" title="UiBibz::Ui::Core::Nav (class)">Nav</a></span>, <span class='object_link'><a href="NavLink.html" title="UiBibz::Ui::Core::NavLink (class)">NavLink</a></span>, <span class='object_link'><a href="Navbar.html" title="UiBibz::Ui::Core::Navbar (class)">Navbar</a></span>, <span class='object_link'><a href="
|
161
|
+
<p class="children"><span class='object_link'><a href="Alert.html" title="UiBibz::Ui::Core::Alert (class)">Alert</a></span>, <span class='object_link'><a href="Bar.html" title="UiBibz::Ui::Core::Bar (class)">Bar</a></span>, <span class='object_link'><a href="Breadcrumb.html" title="UiBibz::Ui::Core::Breadcrumb (class)">Breadcrumb</a></span>, <span class='object_link'><a href="BreadcrumbLink.html" title="UiBibz::Ui::Core::BreadcrumbLink (class)">BreadcrumbLink</a></span>, <span class='object_link'><a href="Button.html" title="UiBibz::Ui::Core::Button (class)">Button</a></span>, <span class='object_link'><a href="ButtonGroup.html" title="UiBibz::Ui::Core::ButtonGroup (class)">ButtonGroup</a></span>, <span class='object_link'><a href="ButtonLink.html" title="UiBibz::Ui::Core::ButtonLink (class)">ButtonLink</a></span>, <span class='object_link'><a href="Col.html" title="UiBibz::Ui::Core::Col (class)">Col</a></span>, <span class='object_link'><a href="Dropdown.html" title="UiBibz::Ui::Core::Dropdown (class)">Dropdown</a></span>, <span class='object_link'><a href="DropdownLink.html" title="UiBibz::Ui::Core::DropdownLink (class)">DropdownLink</a></span>, <span class='object_link'><a href="DropdownList.html" title="UiBibz::Ui::Core::DropdownList (class)">DropdownList</a></span>, <span class='object_link'><a href="Glyph.html" title="UiBibz::Ui::Core::Glyph (class)">Glyph</a></span>, <span class='object_link'><a href="Jumbotron.html" title="UiBibz::Ui::Core::Jumbotron (class)">Jumbotron</a></span>, <span class='object_link'><a href="Label.html" title="UiBibz::Ui::Core::Label (class)">Label</a></span>, <span class='object_link'><a href="List.html" title="UiBibz::Ui::Core::List (class)">List</a></span>, <span class='object_link'><a href="ListGroup.html" title="UiBibz::Ui::Core::ListGroup (class)">ListGroup</a></span>, <span class='object_link'><a href="Nav.html" title="UiBibz::Ui::Core::Nav (class)">Nav</a></span>, <span class='object_link'><a href="NavLink.html" title="UiBibz::Ui::Core::NavLink (class)">NavLink</a></span>, <span class='object_link'><a href="Navbar.html" title="UiBibz::Ui::Core::Navbar (class)">Navbar</a></span>, <span class='object_link'><a href="NavbarText.html" title="UiBibz::Ui::Core::NavbarText (class)">NavbarText</a></span>, <span class='object_link'><a href="Panel.html" title="UiBibz::Ui::Core::Panel (class)">Panel</a></span>, <span class='object_link'><a href="ProgressBar.html" title="UiBibz::Ui::Core::ProgressBar (class)">ProgressBar</a></span>, <span class='object_link'><a href="Row.html" title="UiBibz::Ui::Core::Row (class)">Row</a></span>, <span class='object_link'><a href="Stars.html" title="UiBibz::Ui::Core::Stars (class)">Stars</a></span>, <span class='object_link'><a href="../Ux/Column.html" title="UiBibz::Ui::Ux::Column (class)">Ux::Column</a></span>, <span class='object_link'><a href="../Ux/Grid.html" title="UiBibz::Ui::Ux::Grid (class)">Ux::Grid</a></span>, <span class='object_link'><a href="../Ux/Table.html" title="UiBibz::Ui::Ux::Table (class)">Ux::Table</a></span>, <span class='object_link'><a href="../Ux/TableAction.html" title="UiBibz::Ui::Ux::TableAction (class)">Ux::TableAction</a></span></p>
|
162
162
|
</div>
|
163
163
|
|
164
164
|
|
@@ -283,7 +283,9 @@ end</code></pre>
|
|
283
283
|
|
284
284
|
|
285
285
|
|
286
|
-
<span class="summary_desc"><div class='inline'
|
286
|
+
<span class="summary_desc"><div class='inline'>
|
287
|
+
<p>Add classes in html_options.</p>
|
288
|
+
</div></span>
|
287
289
|
|
288
290
|
</li>
|
289
291
|
|
@@ -305,7 +307,9 @@ end</code></pre>
|
|
305
307
|
|
306
308
|
|
307
309
|
|
308
|
-
<span class="summary_desc"><div class='inline'
|
310
|
+
<span class="summary_desc"><div class='inline'>
|
311
|
+
<p>Render badge html tag.</p>
|
312
|
+
</div></span>
|
309
313
|
|
310
314
|
</li>
|
311
315
|
|
@@ -327,7 +331,9 @@ end</code></pre>
|
|
327
331
|
|
328
332
|
|
329
333
|
|
330
|
-
<span class="summary_desc"><div class='inline'
|
334
|
+
<span class="summary_desc"><div class='inline'>
|
335
|
+
<p>Add classes in html_options.</p>
|
336
|
+
</div></span>
|
331
337
|
|
332
338
|
</li>
|
333
339
|
|
@@ -349,7 +355,9 @@ end</code></pre>
|
|
349
355
|
|
350
356
|
|
351
357
|
|
352
|
-
<span class="summary_desc"><div class='inline'
|
358
|
+
<span class="summary_desc"><div class='inline'>
|
359
|
+
<p>Render glyph html.</p>
|
360
|
+
</div></span>
|
353
361
|
|
354
362
|
</li>
|
355
363
|
|
@@ -371,7 +379,9 @@ end</code></pre>
|
|
371
379
|
|
372
380
|
|
373
381
|
|
374
|
-
<span class="summary_desc"><div class='inline'
|
382
|
+
<span class="summary_desc"><div class='inline'>
|
383
|
+
<p>Render glyph and content html.</p>
|
384
|
+
</div></span>
|
375
385
|
|
376
386
|
</li>
|
377
387
|
|
@@ -393,7 +403,9 @@ end</code></pre>
|
|
393
403
|
|
394
404
|
|
395
405
|
|
396
|
-
<span class="summary_desc"><div class='inline'
|
406
|
+
<span class="summary_desc"><div class='inline'>
|
407
|
+
<p>Render glyph with space html.</p>
|
408
|
+
</div></span>
|
397
409
|
|
398
410
|
</li>
|
399
411
|
|
@@ -418,31 +430,10 @@ end</code></pre>
|
|
418
430
|
|
419
431
|
|
420
432
|
<span class="summary_desc"><div class='inline'>
|
421
|
-
<p>
|
433
|
+
<p>Use link_to system in rails * Content can be send by content variable or by
|
434
|
+
block if a block is sent, variable 'content' does not exit.</p>
|
422
435
|
</div></span>
|
423
436
|
|
424
|
-
</li>
|
425
|
-
|
426
|
-
|
427
|
-
<li class="public ">
|
428
|
-
<span class="summary_signature">
|
429
|
-
|
430
|
-
<a href="#options_in_html_options-instance_method" title="#options_in_html_options (instance method)">- (Object) <strong>options_in_html_options</strong>(opts) </a>
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
</span>
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
445
|
-
|
446
437
|
</li>
|
447
438
|
|
448
439
|
|
@@ -463,7 +454,9 @@ end</code></pre>
|
|
463
454
|
|
464
455
|
|
465
456
|
|
466
|
-
<span class="summary_desc"><div class='inline'
|
457
|
+
<span class="summary_desc"><div class='inline'>
|
458
|
+
<p>Render html tag.</p>
|
459
|
+
</div></span>
|
467
460
|
|
468
461
|
</li>
|
469
462
|
|
@@ -485,51 +478,9 @@ end</code></pre>
|
|
485
478
|
|
486
479
|
|
487
480
|
|
488
|
-
<span class="summary_desc"><div class='inline'
|
489
|
-
|
490
|
-
</
|
491
|
-
|
492
|
-
|
493
|
-
<li class="public ">
|
494
|
-
<span class="summary_signature">
|
495
|
-
|
496
|
-
<a href="#states-instance_method" title="#states (instance method)">- (Object) <strong>states</strong> </a>
|
497
|
-
|
498
|
-
|
499
|
-
|
500
|
-
</span>
|
501
|
-
|
502
|
-
|
503
|
-
|
504
|
-
|
505
|
-
|
506
|
-
|
507
|
-
|
508
|
-
|
509
|
-
|
510
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
511
|
-
|
512
|
-
</li>
|
513
|
-
|
514
|
-
|
515
|
-
<li class="public ">
|
516
|
-
<span class="summary_signature">
|
517
|
-
|
518
|
-
<a href="#status-instance_method" title="#status (instance method)">- (Object) <strong>status</strong> </a>
|
519
|
-
|
520
|
-
|
521
|
-
|
522
|
-
</span>
|
523
|
-
|
524
|
-
|
525
|
-
|
526
|
-
|
527
|
-
|
528
|
-
|
529
|
-
|
530
|
-
|
531
|
-
|
532
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
481
|
+
<span class="summary_desc"><div class='inline'>
|
482
|
+
<p>Set :default state symbol.</p>
|
483
|
+
</div></span>
|
533
484
|
|
534
485
|
</li>
|
535
486
|
|
@@ -564,7 +515,15 @@ end</code></pre>
|
|
564
515
|
</h3><div class="docstring">
|
565
516
|
<div class="discussion">
|
566
517
|
|
567
|
-
<p>
|
518
|
+
<p>Use link_to system in rails</p>
|
519
|
+
<ul><li>
|
520
|
+
<p>Content can be send by content variable or by block if a block is sent,
|
521
|
+
variable 'content' does not exit.</p>
|
522
|
+
</li><li>
|
523
|
+
<p>Options of component is defined in hash options</p>
|
524
|
+
</li><li>
|
525
|
+
<p>Html options is defined in hash html_options</p>
|
526
|
+
</li></ul>
|
568
527
|
|
569
528
|
|
570
529
|
</div>
|
@@ -578,11 +537,6 @@ end</code></pre>
|
|
578
537
|
<pre class="lines">
|
579
538
|
|
580
539
|
|
581
|
-
43
|
582
|
-
44
|
583
|
-
45
|
584
|
-
46
|
585
|
-
47
|
586
540
|
48
|
587
541
|
49
|
588
542
|
50
|
@@ -592,10 +546,15 @@ end</code></pre>
|
|
592
546
|
54
|
593
547
|
55
|
594
548
|
56
|
595
|
-
57
|
549
|
+
57
|
550
|
+
58
|
551
|
+
59
|
552
|
+
60
|
553
|
+
61
|
554
|
+
62</pre>
|
596
555
|
</td>
|
597
556
|
<td>
|
598
|
-
<pre class="code"><span class="info file"># File 'lib/ui_bibz/ui/core/component.rb', line
|
557
|
+
<pre class="code"><span class="info file"># File 'lib/ui_bibz/ui/core/component.rb', line 48</span>
|
599
558
|
|
600
559
|
<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>
|
601
560
|
<span class='kw'>if</span> <span class='op'>!</span><span class='id identifier rubyid_block'>block</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
@@ -767,18 +726,29 @@ end</code></pre>
|
|
767
726
|
|
768
727
|
|
769
728
|
|
770
|
-
</h3><
|
729
|
+
</h3><div class="docstring">
|
730
|
+
<div class="discussion">
|
731
|
+
|
732
|
+
<p>Add classes in html_options</p>
|
733
|
+
|
734
|
+
|
735
|
+
</div>
|
736
|
+
</div>
|
737
|
+
<div class="tags">
|
738
|
+
|
739
|
+
|
740
|
+
</div><table class="source_code">
|
771
741
|
<tr>
|
772
742
|
<td>
|
773
743
|
<pre class="lines">
|
774
744
|
|
775
745
|
|
776
|
-
|
777
|
-
|
778
|
-
|
746
|
+
113
|
747
|
+
114
|
748
|
+
115</pre>
|
779
749
|
</td>
|
780
750
|
<td>
|
781
|
-
<pre class="code"><span class="info file"># File 'lib/ui_bibz/ui/core/component.rb', line
|
751
|
+
<pre class="code"><span class="info file"># File 'lib/ui_bibz/ui/core/component.rb', line 113</span>
|
782
752
|
|
783
753
|
<span class='kw'>def</span> <span class='id identifier rubyid_add_classes'>add_classes</span> <span class='op'>*</span><span class='id identifier rubyid_classes'>classes</span>
|
784
754
|
<span class='id identifier rubyid_classes'>classes</span><span class='period'>.</span><span class='id identifier rubyid_compact'>compact</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'> </span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
@@ -797,18 +767,29 @@ end</code></pre>
|
|
797
767
|
|
798
768
|
|
799
769
|
|
800
|
-
</h3><
|
770
|
+
</h3><div class="docstring">
|
771
|
+
<div class="discussion">
|
772
|
+
|
773
|
+
<p>Render badge html tag</p>
|
774
|
+
|
775
|
+
|
776
|
+
</div>
|
777
|
+
</div>
|
778
|
+
<div class="tags">
|
779
|
+
|
780
|
+
|
781
|
+
</div><table class="source_code">
|
801
782
|
<tr>
|
802
783
|
<td>
|
803
784
|
<pre class="lines">
|
804
785
|
|
805
786
|
|
806
|
-
|
807
|
-
|
808
|
-
|
787
|
+
86
|
788
|
+
87
|
789
|
+
88</pre>
|
809
790
|
</td>
|
810
791
|
<td>
|
811
|
-
<pre class="code"><span class="info file"># File 'lib/ui_bibz/ui/core/component.rb', line
|
792
|
+
<pre class="code"><span class="info file"># File 'lib/ui_bibz/ui/core/component.rb', line 86</span>
|
812
793
|
|
813
794
|
<span class='kw'>def</span> <span class='id identifier rubyid_badge_html'>badge_html</span>
|
814
795
|
<span class='id identifier rubyid_content_tag'>content_tag</span> <span class='symbol'>:span</span><span class='comma'>,</span> <span class='ivar'>@options</span><span class='lbracket'>[</span><span class='symbol'>:badge</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='label'>class:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>badge</span><span class='tstring_end'>'</span></span>
|
@@ -827,7 +808,18 @@ end</code></pre>
|
|
827
808
|
|
828
809
|
|
829
810
|
|
830
|
-
</h3><
|
811
|
+
</h3><div class="docstring">
|
812
|
+
<div class="discussion">
|
813
|
+
|
814
|
+
<p>Add classes in html_options</p>
|
815
|
+
|
816
|
+
|
817
|
+
</div>
|
818
|
+
</div>
|
819
|
+
<div class="tags">
|
820
|
+
|
821
|
+
|
822
|
+
</div><table class="source_code">
|
831
823
|
<tr>
|
832
824
|
<td>
|
833
825
|
<pre class="lines">
|
@@ -877,19 +869,30 @@ end</code></pre>
|
|
877
869
|
|
878
870
|
|
879
871
|
|
880
|
-
</h3><
|
872
|
+
</h3><div class="docstring">
|
873
|
+
<div class="discussion">
|
874
|
+
|
875
|
+
<p>Render glyph html</p>
|
876
|
+
|
877
|
+
|
878
|
+
</div>
|
879
|
+
</div>
|
880
|
+
<div class="tags">
|
881
|
+
|
882
|
+
|
883
|
+
</div><table class="source_code">
|
881
884
|
<tr>
|
882
885
|
<td>
|
883
886
|
<pre class="lines">
|
884
887
|
|
885
888
|
|
886
|
-
|
887
|
-
|
888
|
-
|
889
|
-
|
889
|
+
80
|
890
|
+
81
|
891
|
+
82
|
892
|
+
83</pre>
|
890
893
|
</td>
|
891
894
|
<td>
|
892
|
-
<pre class="code"><span class="info file"># File 'lib/ui_bibz/ui/core/component.rb', line
|
895
|
+
<pre class="code"><span class="info file"># File 'lib/ui_bibz/ui/core/component.rb', line 80</span>
|
893
896
|
|
894
897
|
<span class='kw'>def</span> <span class='id identifier rubyid_glyph'>glyph</span>
|
895
898
|
<span class='id identifier rubyid_glyph_info'>glyph_info</span> <span class='op'>=</span> <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:glyph</span><span class='rbracket'>]</span> <span class='kw'>if</span> <span class='id identifier rubyid_options'>options</span><span class='period'>.</span><span class='id identifier rubyid_kind_of?'>kind_of?</span><span class='lparen'>(</span><span class='const'>Hash</span><span class='rparen'>)</span>
|
@@ -909,18 +912,29 @@ end</code></pre>
|
|
909
912
|
|
910
913
|
|
911
914
|
|
912
|
-
</h3><
|
915
|
+
</h3><div class="docstring">
|
916
|
+
<div class="discussion">
|
917
|
+
|
918
|
+
<p>Render glyph and content html</p>
|
919
|
+
|
920
|
+
|
921
|
+
</div>
|
922
|
+
</div>
|
923
|
+
<div class="tags">
|
924
|
+
|
925
|
+
|
926
|
+
</div><table class="source_code">
|
913
927
|
<tr>
|
914
928
|
<td>
|
915
929
|
<pre class="lines">
|
916
930
|
|
917
931
|
|
918
|
-
|
919
|
-
|
920
|
-
|
932
|
+
70
|
933
|
+
71
|
934
|
+
72</pre>
|
921
935
|
</td>
|
922
936
|
<td>
|
923
|
-
<pre class="code"><span class="info file"># File 'lib/ui_bibz/ui/core/component.rb', line
|
937
|
+
<pre class="code"><span class="info file"># File 'lib/ui_bibz/ui/core/component.rb', line 70</span>
|
924
938
|
|
925
939
|
<span class='kw'>def</span> <span class='id identifier rubyid_glyph_and_content_html'>glyph_and_content_html</span>
|
926
940
|
<span class='lbracket'>[</span><span class='id identifier rubyid_glyph_with_space'>glyph_with_space</span><span class='comma'>,</span> <span class='ivar'>@content</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_compact'>compact</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>
|
@@ -939,53 +953,32 @@ end</code></pre>
|
|
939
953
|
|
940
954
|
|
941
955
|
|
942
|
-
</h3><
|
943
|
-
<
|
944
|
-
|
945
|
-
|
946
|
-
|
956
|
+
</h3><div class="docstring">
|
957
|
+
<div class="discussion">
|
958
|
+
|
959
|
+
<p>Render glyph with space html</p>
|
947
960
|
|
948
|
-
72
|
949
|
-
73
|
950
|
-
74</pre>
|
951
|
-
</td>
|
952
|
-
<td>
|
953
|
-
<pre class="code"><span class="info file"># File 'lib/ui_bibz/ui/core/component.rb', line 72</span>
|
954
961
|
|
955
|
-
|
956
|
-
<span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span> <span class='id identifier rubyid_glyph'>glyph</span> <span class='rbrace'>}</span><span class='tstring_content'> </span><span class='tstring_end'>"</span></span> <span class='kw'>unless</span> <span class='id identifier rubyid_glyph'>glyph</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
957
|
-
<span class='kw'>end</span></pre>
|
958
|
-
</td>
|
959
|
-
</tr>
|
960
|
-
</table>
|
962
|
+
</div>
|
961
963
|
</div>
|
962
|
-
|
963
|
-
<div class="method_details ">
|
964
|
-
<h3 class="signature " id="options_in_html_options-instance_method">
|
965
|
-
|
966
|
-
- (<tt>Object</tt>) <strong>options_in_html_options</strong>(opts)
|
967
|
-
|
968
|
-
|
964
|
+
<div class="tags">
|
969
965
|
|
970
966
|
|
971
|
-
|
972
|
-
</h3><table class="source_code">
|
967
|
+
</div><table class="source_code">
|
973
968
|
<tr>
|
974
969
|
<td>
|
975
970
|
<pre class="lines">
|
976
971
|
|
977
972
|
|
978
|
-
|
979
|
-
|
980
|
-
|
981
|
-
115</pre>
|
973
|
+
75
|
974
|
+
76
|
975
|
+
77</pre>
|
982
976
|
</td>
|
983
977
|
<td>
|
984
|
-
<pre class="code"><span class="info file"># File 'lib/ui_bibz/ui/core/component.rb', line
|
978
|
+
<pre class="code"><span class="info file"># File 'lib/ui_bibz/ui/core/component.rb', line 75</span>
|
985
979
|
|
986
|
-
<span class='kw'>def</span> <span class='id identifier
|
987
|
-
<span class='
|
988
|
-
<span class='id identifier rubyid_html_options'>html_options</span>
|
980
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_glyph_with_space'>glyph_with_space</span>
|
981
|
+
<span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span> <span class='id identifier rubyid_glyph'>glyph</span> <span class='rbrace'>}</span><span class='tstring_content'> </span><span class='tstring_end'>"</span></span> <span class='kw'>unless</span> <span class='id identifier rubyid_glyph'>glyph</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
989
982
|
<span class='kw'>end</span></pre>
|
990
983
|
</td>
|
991
984
|
</tr>
|
@@ -1001,55 +994,32 @@ end</code></pre>
|
|
1001
994
|
|
1002
995
|
|
1003
996
|
|
1004
|
-
</h3><
|
1005
|
-
<
|
1006
|
-
|
1007
|
-
|
997
|
+
</h3><div class="docstring">
|
998
|
+
<div class="discussion">
|
999
|
+
|
1000
|
+
<p>Render html tag</p>
|
1008
1001
|
|
1009
1002
|
|
1010
|
-
|
1011
|
-
60
|
1012
|
-
61</pre>
|
1013
|
-
</td>
|
1014
|
-
<td>
|
1015
|
-
<pre class="code"><span class="info file"># File 'lib/ui_bibz/ui/core/component.rb', line 59</span>
|
1016
|
-
|
1017
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_render'>render</span>
|
1018
|
-
<span class='id identifier rubyid_glyph_and_content_html'>glyph_and_content_html</span>
|
1019
|
-
<span class='kw'>end</span></pre>
|
1020
|
-
</td>
|
1021
|
-
</tr>
|
1022
|
-
</table>
|
1003
|
+
</div>
|
1023
1004
|
</div>
|
1024
|
-
|
1025
|
-
<div class="method_details ">
|
1026
|
-
<h3 class="signature " id="state-instance_method">
|
1027
|
-
|
1028
|
-
- (<tt>Object</tt>) <strong>state</strong>
|
1029
|
-
|
1030
|
-
|
1005
|
+
<div class="tags">
|
1031
1006
|
|
1032
1007
|
|
1033
|
-
|
1034
|
-
</h3><table class="source_code">
|
1008
|
+
</div><table class="source_code">
|
1035
1009
|
<tr>
|
1036
1010
|
<td>
|
1037
1011
|
<pre class="lines">
|
1038
1012
|
|
1039
1013
|
|
1040
|
-
|
1041
|
-
|
1042
|
-
|
1043
|
-
91
|
1044
|
-
92</pre>
|
1014
|
+
65
|
1015
|
+
66
|
1016
|
+
67</pre>
|
1045
1017
|
</td>
|
1046
1018
|
<td>
|
1047
|
-
<pre class="code"><span class="info file"># File 'lib/ui_bibz/ui/core/component.rb', line
|
1019
|
+
<pre class="code"><span class="info file"># File 'lib/ui_bibz/ui/core/component.rb', line 65</span>
|
1048
1020
|
|
1049
|
-
<span class='kw'>def</span> <span class='id identifier
|
1050
|
-
<span class='id identifier
|
1051
|
-
<span class='id identifier rubyid_sym'>sym</span> <span class='op'>=</span> <span class='id identifier rubyid_sym'>sym</span> <span class='op'>||</span> <span class='symbol'>:default</span>
|
1052
|
-
<span class='id identifier rubyid_states'>states</span><span class='lbracket'>[</span><span class='symbol'>:sym</span><span class='rbracket'>]</span>
|
1021
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_render'>render</span>
|
1022
|
+
<span class='id identifier rubyid_glyph_and_content_html'>glyph_and_content_html</span>
|
1053
1023
|
<span class='kw'>end</span></pre>
|
1054
1024
|
</td>
|
1055
1025
|
</tr>
|
@@ -1057,73 +1027,44 @@ end</code></pre>
|
|
1057
1027
|
</div>
|
1058
1028
|
|
1059
1029
|
<div class="method_details ">
|
1060
|
-
<h3 class="signature " id="
|
1030
|
+
<h3 class="signature " id="state-instance_method">
|
1061
1031
|
|
1062
|
-
- (<tt>Object</tt>) <strong>
|
1032
|
+
- (<tt>Object</tt>) <strong>state</strong>
|
1063
1033
|
|
1064
1034
|
|
1065
1035
|
|
1066
1036
|
|
1067
1037
|
|
1068
|
-
</h3><
|
1069
|
-
<
|
1070
|
-
|
1071
|
-
|
1072
|
-
|
1038
|
+
</h3><div class="docstring">
|
1039
|
+
<div class="discussion">
|
1040
|
+
|
1041
|
+
<p>Set :default state symbol</p>
|
1073
1042
|
|
1074
|
-
121
|
1075
|
-
122
|
1076
|
-
123
|
1077
|
-
124
|
1078
|
-
125
|
1079
|
-
126
|
1080
|
-
127
|
1081
|
-
128
|
1082
|
-
129
|
1083
|
-
130</pre>
|
1084
|
-
</td>
|
1085
|
-
<td>
|
1086
|
-
<pre class="code"><span class="info file"># File 'lib/ui_bibz/ui/core/component.rb', line 121</span>
|
1087
1043
|
|
1088
|
-
|
1089
|
-
<span class='kw'>if</span> <span class='ivar'>@states</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
1090
|
-
<span class='id identifier rubyid_states'>states</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
|
1091
|
-
<span class='qwords_beg'>%w(</span><span class='tstring_content'>default</span><span class='words_sep'> </span><span class='tstring_content'>success</span><span class='words_sep'> </span><span class='tstring_content'>primary</span><span class='words_sep'> </span><span class='tstring_content'>info</span><span class='words_sep'> </span><span class='tstring_content'>warning</span><span class='words_sep'> </span><span class='tstring_content'>danger</span><span class='words_sep'>)</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_s'>s</span><span class='op'>|</span>
|
1092
|
-
<span class='id identifier rubyid_states'>states</span> <span class='op'>=</span> <span class='id identifier rubyid_states'>states</span><span class='period'>.</span><span class='id identifier rubyid_merge'>merge</span><span class='lparen'>(</span><span class='const'>Hash</span><span class='lbracket'>[</span><span class='id identifier rubyid_s'>s</span><span class='period'>.</span><span class='id identifier rubyid_to_sym'>to_sym</span><span class='comma'>,</span> <span class='id identifier rubyid_s'>s</span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
1093
|
-
<span class='kw'>end</span>
|
1094
|
-
<span class='ivar'>@states</span> <span class='op'>=</span> <span class='id identifier rubyid_states'>states</span>
|
1095
|
-
<span class='kw'>end</span>
|
1096
|
-
<span class='ivar'>@states</span>
|
1097
|
-
<span class='kw'>end</span></pre>
|
1098
|
-
</td>
|
1099
|
-
</tr>
|
1100
|
-
</table>
|
1044
|
+
</div>
|
1101
1045
|
</div>
|
1102
|
-
|
1103
|
-
<div class="method_details ">
|
1104
|
-
<h3 class="signature " id="status-instance_method">
|
1105
|
-
|
1106
|
-
- (<tt>Object</tt>) <strong>status</strong>
|
1107
|
-
|
1108
|
-
|
1046
|
+
<div class="tags">
|
1109
1047
|
|
1110
1048
|
|
1111
|
-
|
1112
|
-
</h3><table class="source_code">
|
1049
|
+
</div><table class="source_code">
|
1113
1050
|
<tr>
|
1114
1051
|
<td>
|
1115
1052
|
<pre class="lines">
|
1116
1053
|
|
1117
1054
|
|
1118
|
-
|
1119
|
-
|
1120
|
-
|
1055
|
+
91
|
1056
|
+
92
|
1057
|
+
93
|
1058
|
+
94
|
1059
|
+
95</pre>
|
1121
1060
|
</td>
|
1122
1061
|
<td>
|
1123
|
-
<pre class="code"><span class="info file"># File 'lib/ui_bibz/ui/core/component.rb', line
|
1062
|
+
<pre class="code"><span class="info file"># File 'lib/ui_bibz/ui/core/component.rb', line 91</span>
|
1124
1063
|
|
1125
|
-
<span class='kw'>def</span> <span class='id identifier
|
1126
|
-
<span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:
|
1064
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_state'>state</span>
|
1065
|
+
<span class='id identifier rubyid_sym'>sym</span> <span class='op'>=</span> <span class='id identifier rubyid_options'>options</span><span class='period'>.</span><span class='id identifier rubyid_delete'>delete</span><span class='lparen'>(</span><span class='symbol'>:state</span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:state</span><span class='rbracket'>]</span>
|
1066
|
+
<span class='id identifier rubyid_sym'>sym</span> <span class='op'>=</span> <span class='id identifier rubyid_sym'>sym</span> <span class='op'>||</span> <span class='symbol'>:default</span>
|
1067
|
+
<span class='id identifier rubyid_states'>states</span><span class='lbracket'>[</span><span class='symbol'>:sym</span><span class='rbracket'>]</span>
|
1127
1068
|
<span class='kw'>end</span></pre>
|
1128
1069
|
</td>
|
1129
1070
|
</tr>
|
@@ -1135,7 +1076,7 @@ end</code></pre>
|
|
1135
1076
|
</div>
|
1136
1077
|
|
1137
1078
|
<div id="footer">
|
1138
|
-
Generated on
|
1079
|
+
Generated on Mon Aug 31 14:08:53 2015 by
|
1139
1080
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1140
1081
|
0.8.7.6 (ruby-1.9.3).
|
1141
1082
|
</div>
|