ui_bibz 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +13 -5
- data/.gitignore +1 -1
- data/.yardoc/checksums +52 -0
- data/.yardoc/object_types +0 -0
- data/.yardoc/objects/root.dat +0 -0
- data/.yardoc/proxy_types +0 -0
- data/Gemfile +1 -1
- data/Gemfile.lock +11 -21
- data/README.md +359 -239
- data/Rakefile +12 -13
- data/doc/UiBibz/Concerns/Models/Searchable/ClassMethods.html +174 -0
- data/doc/UiBibz/Concerns/Models/Searchable.html +120 -0
- data/doc/UiBibz/Helpers/MetaHelper.html +218 -0
- data/doc/UiBibz/Helpers/UiCoreHelper.html +1130 -0
- data/doc/UiBibz/Helpers/UiUxHelper.html +463 -0
- data/doc/UiBibz/Helpers/UtilsHelper.html +187 -0
- data/doc/UiBibz/Rails/Engine.html +123 -0
- data/doc/UiBibz/Rails.html +115 -0
- data/doc/UiBibz/Ui/Base.html +304 -0
- data/doc/UiBibz/Ui/Core/Alert.html +367 -0
- data/doc/UiBibz/Ui/Core/Bar.html +356 -0
- data/doc/UiBibz/Ui/Core/Breadcrumb.html +427 -0
- data/doc/UiBibz/Ui/Core/BreadcrumbLink.html +354 -0
- data/doc/UiBibz/Ui/Core/Button.html +363 -0
- data/doc/UiBibz/Ui/Core/ButtonDropdown.html +385 -0
- data/doc/UiBibz/Ui/Core/ButtonGroup.html +356 -0
- data/doc/UiBibz/Ui/Core/ButtonLink.html +365 -0
- data/doc/UiBibz/Ui/Core/ButtonSplitDropdown.html +387 -0
- data/doc/UiBibz/Ui/Core/Col.html +357 -0
- data/doc/UiBibz/Ui/Core/Component.html +1144 -0
- data/doc/UiBibz/Ui/Core/Dropdown.html +877 -0
- data/doc/UiBibz/Ui/Core/DropdownList.html +369 -0
- data/doc/UiBibz/Ui/Core/Glyph.html +742 -0
- data/doc/UiBibz/Ui/Core/Jumbotron.html +363 -0
- data/doc/UiBibz/Ui/Core/Label.html +361 -0
- data/doc/UiBibz/Ui/Core/List.html +486 -0
- data/doc/UiBibz/Ui/Core/ListGroup.html +446 -0
- data/doc/UiBibz/Ui/Core/Nav.html +474 -0
- data/doc/UiBibz/Ui/Core/NavDropdown.html +376 -0
- data/doc/UiBibz/Ui/Core/NavLink.html +347 -0
- data/doc/UiBibz/Ui/Core/Navbar.html +535 -0
- data/doc/UiBibz/Ui/Core/NavbarForm.html +341 -0
- data/doc/UiBibz/Ui/Core/NavbarNav.html +301 -0
- data/doc/UiBibz/Ui/Core/NavbarText.html +341 -0
- data/doc/UiBibz/Ui/Core/Panel.html +806 -0
- data/doc/UiBibz/Ui/Core/ProgressBar.html +433 -0
- data/doc/UiBibz/Ui/Core/Row.html +335 -0
- data/doc/UiBibz/Ui/Core.html +117 -0
- data/doc/UiBibz/Ui/Ux/Actionable.html +478 -0
- data/doc/UiBibz/Ui/Ux/Actions.html +314 -0
- data/doc/UiBibz/Ui/Ux/Column.html +1177 -0
- data/doc/UiBibz/Ui/Ux/Columns.html +312 -0
- data/doc/UiBibz/Ui/Ux/Grid.html +823 -0
- data/doc/UiBibz/Ui/Ux/Paginable.html +368 -0
- data/doc/UiBibz/Ui/Ux/Searchable.html +363 -0
- data/doc/UiBibz/Ui/Ux/Sortable.html +289 -0
- data/doc/UiBibz/Ui/Ux/Store.html +968 -0
- data/doc/UiBibz/Ui/Ux/Table.html +957 -0
- data/doc/UiBibz/Ui/Ux/TableAction.html +309 -0
- data/doc/UiBibz/Ui/Ux/TablePagination.html +319 -0
- data/doc/UiBibz/Ui/Ux/TablePaginationPerPage.html +331 -0
- data/doc/UiBibz/Ui/Ux/TablePanel.html +576 -0
- data/doc/UiBibz/Ui/Ux/TableSearchField.html +291 -0
- data/doc/UiBibz/Ui/Ux.html +117 -0
- data/doc/UiBibz/Ui.html +117 -0
- data/doc/UiBibz/Utils/Internationalization.html +262 -0
- data/doc/UiBibz/Utils.html +115 -0
- data/doc/UiBibz.html +129 -0
- data/doc/_index.html +635 -0
- data/doc/class_list.html +58 -0
- data/doc/css/common.css +1 -0
- data/doc/css/full_list.css +57 -0
- data/doc/css/style.css +339 -0
- data/doc/file.README.html +1022 -0
- data/doc/file_list.html +60 -0
- data/doc/frames.html +26 -0
- data/doc/images/navbar.png +0 -0
- data/doc/index.html +1022 -0
- data/doc/js/app.js +219 -0
- data/doc/js/full_list.js +181 -0
- data/doc/js/jquery.js +4 -0
- data/doc/method_list.html +1335 -0
- data/doc/top-level-namespace.html +112 -0
- data/lib/ui_bibz/helpers/ui_core_helper.rb +94 -0
- data/lib/ui_bibz/helpers/ui_ux_helper.rb +43 -0
- data/lib/ui_bibz/rails/engine.rb +2 -1
- data/lib/ui_bibz/ui/{ui.rb → base.rb} +1 -1
- data/lib/ui_bibz/ui/{alert.rb → core/alert.rb} +15 -7
- data/lib/ui_bibz/ui/core/breadcrumb/breadcrumb.rb +71 -0
- data/lib/ui_bibz/ui/{breadcrumb → core/breadcrumb}/components/breadcrumb_link.rb +6 -6
- data/lib/ui_bibz/ui/{button → core/button}/button.rb +13 -6
- data/lib/ui_bibz/ui/{button → core/button}/button_dropdown.rb +15 -4
- data/lib/ui_bibz/ui/{button → core/button}/button_group.rb +14 -6
- data/lib/ui_bibz/ui/{button → core/button}/button_link.rb +14 -6
- data/lib/ui_bibz/ui/{button → core/button}/button_split_dropdown.rb +15 -4
- data/lib/ui_bibz/ui/{grid/components → core}/col.rb +12 -6
- data/lib/ui_bibz/ui/{component.rb → core/component.rb} +7 -7
- data/lib/ui_bibz/ui/{dropdown → core/dropdown}/components/dropdown_list.rb +7 -7
- data/lib/ui_bibz/ui/{dropdown → core/dropdown}/dropdown.rb +18 -7
- data/lib/ui_bibz/ui/{glyph.rb → core/glyph.rb} +18 -10
- data/lib/ui_bibz/ui/{jumbotron.rb → core/jumbotron.rb} +14 -6
- data/lib/ui_bibz/ui/{label.rb → core/label.rb} +14 -6
- data/lib/ui_bibz/ui/{list → core/list}/components/list.rb +8 -8
- data/lib/ui_bibz/ui/{list → core/list}/list_group.rb +28 -6
- data/lib/ui_bibz/ui/core/nav/components/nav_dropdown.rb +64 -0
- data/lib/ui_bibz/ui/{nav → core/nav}/components/nav_link.rb +6 -6
- data/lib/ui_bibz/ui/core/nav/components/navbar_form.rb +45 -0
- data/lib/ui_bibz/ui/core/nav/components/navbar_nav.rb +56 -0
- data/lib/ui_bibz/ui/core/nav/components/navbar_text.rb +45 -0
- data/lib/ui_bibz/ui/core/nav/nav.rb +90 -0
- data/lib/ui_bibz/ui/core/nav/navbar.rb +121 -0
- data/lib/ui_bibz/ui/{panel.rb → core/panel.rb} +36 -8
- data/lib/ui_bibz/ui/{progress_bar → core/progress_bar}/components/bar.rb +7 -7
- data/lib/ui_bibz/ui/{progress_bar → core/progress_bar}/progress_bar.rb +20 -9
- data/lib/ui_bibz/ui/{grid/components → core}/row.rb +12 -4
- data/lib/ui_bibz/ui/{grid → ux}/grid.rb +17 -8
- data/lib/ui_bibz/ui/{table → ux/table}/components/actions.rb +5 -5
- data/lib/ui_bibz/ui/ux/table/components/column.rb +34 -0
- data/lib/ui_bibz/ui/ux/table/components/columns.rb +16 -0
- data/lib/ui_bibz/ui/{table → ux/table}/components/store.rb +4 -4
- data/lib/ui_bibz/ui/{table → ux/table}/components/table_action.rb +2 -2
- data/lib/ui_bibz/ui/{table/ux → ux/table/extensions}/actionable.rb +3 -3
- data/lib/ui_bibz/ui/{table/ux → ux/table/extensions}/paginable.rb +5 -5
- data/lib/ui_bibz/ui/{table/ux → ux/table/extensions}/searchable.rb +4 -4
- data/lib/ui_bibz/ui/{table/ux → ux/table/extensions}/sortable.rb +3 -3
- data/lib/ui_bibz/ui/{table → ux/table}/table.rb +40 -22
- data/lib/ui_bibz/ui/ux/table/table_pagination.rb +51 -0
- data/lib/ui_bibz/ui/{table → ux/table}/table_pagination_per_page.rb +26 -4
- data/lib/ui_bibz/ui/ux/table/table_panel.rb +155 -0
- data/lib/ui_bibz/ui/{table → ux/table}/table_search_field.rb +7 -7
- data/lib/ui_bibz/version.rb +1 -1
- data/lib/ui_bibz.rb +40 -29
- data/test/store_test.rb +2 -2
- data/test/ui/button_test.rb +6 -6
- data/test/ui/component_test.rb +2 -2
- data/test/ui/dropdown_test.rb +1 -1
- data/test/ui/glyph_test.rb +3 -3
- data/test/ui/grid_test.rb +4 -4
- data/test/ui/list_group_test.rb +2 -2
- data/test/ui/nav_test.rb +3 -4
- data/test/ui/panel_test.rb +4 -4
- data/test/ui/table_test.rb +32 -32
- data/test/ui_helper_test.rb +18 -2
- data/ui_bibz.gemspec +1 -0
- data/vendor/assets/stylesheets/ui_bibz.sass +3 -0
- metadata +166 -132
- data/README.rdoc +0 -0
- data/lib/ui_bibz/helpers/ui_helper.rb +0 -119
- data/lib/ui_bibz/ui/breadcrumb/breadcrumb.rb +0 -54
- data/lib/ui_bibz/ui/nav/nav.rb +0 -65
- data/lib/ui_bibz/ui/table/components/column.rb +0 -34
- data/lib/ui_bibz/ui/table/components/columns.rb +0 -16
- data/lib/ui_bibz/ui/table/table_pagination.rb +0 -29
- data/lib/ui_bibz/ui/table/table_panel.rb +0 -66
@@ -0,0 +1,1144 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
+
<head>
|
5
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
6
|
+
<title>
|
7
|
+
Class: UiBibz::Ui::Core::Component
|
8
|
+
|
9
|
+
— Documentation by YARD 0.8.7.6
|
10
|
+
|
11
|
+
</title>
|
12
|
+
|
13
|
+
<link rel="stylesheet" href="../../../css/style.css" type="text/css" charset="utf-8" />
|
14
|
+
|
15
|
+
<link rel="stylesheet" href="../../../css/common.css" type="text/css" charset="utf-8" />
|
16
|
+
|
17
|
+
<script type="text/javascript" charset="utf-8">
|
18
|
+
hasFrames = window.top.frames.main ? true : false;
|
19
|
+
relpath = '../../../';
|
20
|
+
framesUrl = "../../../frames.html#!UiBibz/Ui/Core/Component.html";
|
21
|
+
</script>
|
22
|
+
|
23
|
+
|
24
|
+
<script type="text/javascript" charset="utf-8" src="../../../js/jquery.js"></script>
|
25
|
+
|
26
|
+
<script type="text/javascript" charset="utf-8" src="../../../js/app.js"></script>
|
27
|
+
|
28
|
+
|
29
|
+
</head>
|
30
|
+
<body>
|
31
|
+
<div id="header">
|
32
|
+
<div id="menu">
|
33
|
+
|
34
|
+
<a href="../../../_index.html">Index (C)</a> »
|
35
|
+
<span class='title'><span class='object_link'><a href="../../../UiBibz.html" title="UiBibz (module)">UiBibz</a></span></span> » <span class='title'><span class='object_link'><a href="../../Ui.html" title="UiBibz::Ui (module)">Ui</a></span></span> » <span class='title'><span class='object_link'><a href="../Core.html" title="UiBibz::Ui::Core (module)">Core</a></span></span>
|
36
|
+
»
|
37
|
+
<span class="title">Component</span>
|
38
|
+
|
39
|
+
|
40
|
+
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
41
|
+
</div>
|
42
|
+
|
43
|
+
<div id="search">
|
44
|
+
|
45
|
+
<a class="full_list_link" id="class_list_link"
|
46
|
+
href="../../../class_list.html">
|
47
|
+
Class List
|
48
|
+
</a>
|
49
|
+
|
50
|
+
<a class="full_list_link" id="method_list_link"
|
51
|
+
href="../../../method_list.html">
|
52
|
+
Method List
|
53
|
+
</a>
|
54
|
+
|
55
|
+
<a class="full_list_link" id="file_list_link"
|
56
|
+
href="../../../file_list.html">
|
57
|
+
File List
|
58
|
+
</a>
|
59
|
+
|
60
|
+
</div>
|
61
|
+
<div class="clear"></div>
|
62
|
+
</div>
|
63
|
+
|
64
|
+
<iframe id="search_frame"></iframe>
|
65
|
+
|
66
|
+
<div id="content"><h1>Class: UiBibz::Ui::Core::Component
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
</h1>
|
71
|
+
|
72
|
+
<dl class="box">
|
73
|
+
|
74
|
+
<dt class="r1">Inherits:</dt>
|
75
|
+
<dd class="r1">
|
76
|
+
<span class="inheritName"><span class='object_link'><a href="../Base.html" title="UiBibz::Ui::Base (class)">Base</a></span></span>
|
77
|
+
|
78
|
+
<ul class="fullTree">
|
79
|
+
<li>Object</li>
|
80
|
+
|
81
|
+
<li class="next"><span class='object_link'><a href="../Base.html" title="UiBibz::Ui::Base (class)">Base</a></span></li>
|
82
|
+
|
83
|
+
<li class="next">UiBibz::Ui::Core::Component</li>
|
84
|
+
|
85
|
+
</ul>
|
86
|
+
<a href="#" class="inheritanceTree">show all</a>
|
87
|
+
|
88
|
+
</dd>
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
|
98
|
+
<dt class="r2 last">Defined in:</dt>
|
99
|
+
<dd class="r2 last">lib/ui_bibz/ui/core/component.rb</dd>
|
100
|
+
|
101
|
+
</dl>
|
102
|
+
<div class="clear"></div>
|
103
|
+
|
104
|
+
<h2>Overview</h2><div class="docstring">
|
105
|
+
<div class="discussion">
|
106
|
+
|
107
|
+
<p>Creates a component of the given <tt>name</tt> using options created by the
|
108
|
+
set of <tt>options</tt>.</p>
|
109
|
+
|
110
|
+
<h4>Attributes</h4>
|
111
|
+
<ul><li>
|
112
|
+
<p><tt>content</tt> - Content of element</p>
|
113
|
+
</li><li>
|
114
|
+
<p><tt>options</tt> - Options of element</p>
|
115
|
+
</li><li>
|
116
|
+
<p><tt>html_options</tt> - Html Options of element</p>
|
117
|
+
</li></ul>
|
118
|
+
|
119
|
+
<h4>Options</h4>
|
120
|
+
|
121
|
+
<p>You can add HTML attributes using the <tt>html_options</tt>. You can pass
|
122
|
+
arguments in options attribute:</p>
|
123
|
+
<ul><li>
|
124
|
+
<p><tt>state</tt> - State of élement with symbol value: (<tt>:default</tt>,
|
125
|
+
<tt>:primary</tt>, <tt>:info</tt>, <tt>:warning</tt>, <tt>:danger</tt>)</p>
|
126
|
+
</li><li>
|
127
|
+
<p><tt>glyph</tt> - Add glyph with name or hash options</p>
|
128
|
+
<ul><li>
|
129
|
+
<p><tt>name</tt> - String</p>
|
130
|
+
</li><li>
|
131
|
+
<p><tt>size</tt> - Integer</p>
|
132
|
+
</li><li>
|
133
|
+
<p><tt>type</tt> - Symbol</p>
|
134
|
+
</li></ul>
|
135
|
+
</li></ul>
|
136
|
+
|
137
|
+
<h4>Signatures</h4>
|
138
|
+
|
139
|
+
<pre class="code ruby"><code class="ruby"><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='lparen'>(</span><span class='id identifier rubyid_content'>content</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='rparen'>)</span>
|
140
|
+
|
141
|
+
<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='lparen'>(</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='rparen'>)</span> <span class='kw'>do</span>
|
142
|
+
<span class='id identifier rubyid_content'>content</span>
|
143
|
+
<span class='kw'>end</span></code></pre>
|
144
|
+
|
145
|
+
<h4>Examples</h4>
|
146
|
+
|
147
|
+
<pre class="code ruby"><code class="ruby">UiBibz::Ui::Core::Component.new(content, { type: :success, glyph: 'eye' },{ class: 'test' })
|
148
|
+
# or
|
149
|
+
UiBibz::Ui::Core::Component.new({glyph: { name: 'eye', size: 3}, { class: 'test' }) do
|
150
|
+
content
|
151
|
+
end</code></pre>
|
152
|
+
|
153
|
+
|
154
|
+
</div>
|
155
|
+
</div>
|
156
|
+
<div class="tags">
|
157
|
+
|
158
|
+
|
159
|
+
</div><div id="subclasses">
|
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="NavbarForm.html" title="UiBibz::Ui::Core::NavbarForm (class)">NavbarForm</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="../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
|
+
</div>
|
163
|
+
|
164
|
+
|
165
|
+
|
166
|
+
|
167
|
+
<h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
|
168
|
+
<ul class="summary">
|
169
|
+
|
170
|
+
<li class="public ">
|
171
|
+
<span class="summary_signature">
|
172
|
+
|
173
|
+
<a href="#content-instance_method" title="#content (instance method)">- (Object) <strong>content</strong> </a>
|
174
|
+
|
175
|
+
|
176
|
+
|
177
|
+
</span>
|
178
|
+
|
179
|
+
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
|
188
|
+
|
189
|
+
|
190
|
+
<span class="summary_desc"><div class='inline'>
|
191
|
+
<p>Returns the value of attribute content.</p>
|
192
|
+
</div></span>
|
193
|
+
|
194
|
+
</li>
|
195
|
+
|
196
|
+
|
197
|
+
<li class="public ">
|
198
|
+
<span class="summary_signature">
|
199
|
+
|
200
|
+
<a href="#html_options-instance_method" title="#html_options (instance method)">- (Object) <strong>html_options</strong> </a>
|
201
|
+
|
202
|
+
|
203
|
+
|
204
|
+
</span>
|
205
|
+
|
206
|
+
|
207
|
+
|
208
|
+
|
209
|
+
|
210
|
+
|
211
|
+
|
212
|
+
|
213
|
+
|
214
|
+
|
215
|
+
|
216
|
+
|
217
|
+
<span class="summary_desc"><div class='inline'>
|
218
|
+
<p>Returns the value of attribute html_options.</p>
|
219
|
+
</div></span>
|
220
|
+
|
221
|
+
</li>
|
222
|
+
|
223
|
+
|
224
|
+
<li class="public ">
|
225
|
+
<span class="summary_signature">
|
226
|
+
|
227
|
+
<a href="#options-instance_method" title="#options (instance method)">- (Object) <strong>options</strong> </a>
|
228
|
+
|
229
|
+
|
230
|
+
|
231
|
+
</span>
|
232
|
+
|
233
|
+
|
234
|
+
|
235
|
+
|
236
|
+
|
237
|
+
|
238
|
+
|
239
|
+
|
240
|
+
|
241
|
+
|
242
|
+
|
243
|
+
|
244
|
+
<span class="summary_desc"><div class='inline'>
|
245
|
+
<p>Returns the value of attribute options.</p>
|
246
|
+
</div></span>
|
247
|
+
|
248
|
+
</li>
|
249
|
+
|
250
|
+
|
251
|
+
</ul>
|
252
|
+
|
253
|
+
|
254
|
+
|
255
|
+
|
256
|
+
|
257
|
+
<h3 class="inherited">Attributes inherited from <span class='object_link'><a href="../Base.html" title="UiBibz::Ui::Base (class)">Base</a></span></h3>
|
258
|
+
<p class="inherited"><span class='object_link'><a href="../Base.html#output_buffer-instance_method" title="UiBibz::Ui::Base#output_buffer (method)">#output_buffer</a></span></p>
|
259
|
+
|
260
|
+
|
261
|
+
|
262
|
+
<h2>
|
263
|
+
Instance Method Summary
|
264
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
265
|
+
</h2>
|
266
|
+
|
267
|
+
<ul class="summary">
|
268
|
+
|
269
|
+
<li class="public ">
|
270
|
+
<span class="summary_signature">
|
271
|
+
|
272
|
+
<a href="#add_classes-instance_method" title="#add_classes (instance method)">- (Object) <strong>add_classes</strong>(*classes) </a>
|
273
|
+
|
274
|
+
|
275
|
+
|
276
|
+
</span>
|
277
|
+
|
278
|
+
|
279
|
+
|
280
|
+
|
281
|
+
|
282
|
+
|
283
|
+
|
284
|
+
|
285
|
+
|
286
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
287
|
+
|
288
|
+
</li>
|
289
|
+
|
290
|
+
|
291
|
+
<li class="public ">
|
292
|
+
<span class="summary_signature">
|
293
|
+
|
294
|
+
<a href="#badge_html-instance_method" title="#badge_html (instance method)">- (Object) <strong>badge_html</strong> </a>
|
295
|
+
|
296
|
+
|
297
|
+
|
298
|
+
</span>
|
299
|
+
|
300
|
+
|
301
|
+
|
302
|
+
|
303
|
+
|
304
|
+
|
305
|
+
|
306
|
+
|
307
|
+
|
308
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
309
|
+
|
310
|
+
</li>
|
311
|
+
|
312
|
+
|
313
|
+
<li class="public ">
|
314
|
+
<span class="summary_signature">
|
315
|
+
|
316
|
+
<a href="#class_and_html_options-instance_method" title="#class_and_html_options (instance method)">- (Object) <strong>class_and_html_options</strong>(classes = nil) </a>
|
317
|
+
|
318
|
+
|
319
|
+
|
320
|
+
</span>
|
321
|
+
|
322
|
+
|
323
|
+
|
324
|
+
|
325
|
+
|
326
|
+
|
327
|
+
|
328
|
+
|
329
|
+
|
330
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
331
|
+
|
332
|
+
</li>
|
333
|
+
|
334
|
+
|
335
|
+
<li class="public ">
|
336
|
+
<span class="summary_signature">
|
337
|
+
|
338
|
+
<a href="#glyph-instance_method" title="#glyph (instance method)">- (Object) <strong>glyph</strong> </a>
|
339
|
+
|
340
|
+
|
341
|
+
|
342
|
+
</span>
|
343
|
+
|
344
|
+
|
345
|
+
|
346
|
+
|
347
|
+
|
348
|
+
|
349
|
+
|
350
|
+
|
351
|
+
|
352
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
353
|
+
|
354
|
+
</li>
|
355
|
+
|
356
|
+
|
357
|
+
<li class="public ">
|
358
|
+
<span class="summary_signature">
|
359
|
+
|
360
|
+
<a href="#glyph_and_content_html-instance_method" title="#glyph_and_content_html (instance method)">- (Object) <strong>glyph_and_content_html</strong> </a>
|
361
|
+
|
362
|
+
|
363
|
+
|
364
|
+
</span>
|
365
|
+
|
366
|
+
|
367
|
+
|
368
|
+
|
369
|
+
|
370
|
+
|
371
|
+
|
372
|
+
|
373
|
+
|
374
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
375
|
+
|
376
|
+
</li>
|
377
|
+
|
378
|
+
|
379
|
+
<li class="public ">
|
380
|
+
<span class="summary_signature">
|
381
|
+
|
382
|
+
<a href="#glyph_with_space-instance_method" title="#glyph_with_space (instance method)">- (Object) <strong>glyph_with_space</strong> </a>
|
383
|
+
|
384
|
+
|
385
|
+
|
386
|
+
</span>
|
387
|
+
|
388
|
+
|
389
|
+
|
390
|
+
|
391
|
+
|
392
|
+
|
393
|
+
|
394
|
+
|
395
|
+
|
396
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
397
|
+
|
398
|
+
</li>
|
399
|
+
|
400
|
+
|
401
|
+
<li class="public ">
|
402
|
+
<span class="summary_signature">
|
403
|
+
|
404
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">- (Component) <strong>initialize</strong>(content = nil, options = nil, html_options = nil, &block) </a>
|
405
|
+
|
406
|
+
|
407
|
+
|
408
|
+
</span>
|
409
|
+
|
410
|
+
|
411
|
+
<span class="note title constructor">constructor</span>
|
412
|
+
|
413
|
+
|
414
|
+
|
415
|
+
|
416
|
+
|
417
|
+
|
418
|
+
|
419
|
+
|
420
|
+
<span class="summary_desc"><div class='inline'>
|
421
|
+
<p>A new instance of Component.</p>
|
422
|
+
</div></span>
|
423
|
+
|
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
|
+
</li>
|
447
|
+
|
448
|
+
|
449
|
+
<li class="public ">
|
450
|
+
<span class="summary_signature">
|
451
|
+
|
452
|
+
<a href="#render-instance_method" title="#render (instance method)">- (Object) <strong>render</strong> </a>
|
453
|
+
|
454
|
+
|
455
|
+
|
456
|
+
</span>
|
457
|
+
|
458
|
+
|
459
|
+
|
460
|
+
|
461
|
+
|
462
|
+
|
463
|
+
|
464
|
+
|
465
|
+
|
466
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
467
|
+
|
468
|
+
</li>
|
469
|
+
|
470
|
+
|
471
|
+
<li class="public ">
|
472
|
+
<span class="summary_signature">
|
473
|
+
|
474
|
+
<a href="#state-instance_method" title="#state (instance method)">- (Object) <strong>state</strong> </a>
|
475
|
+
|
476
|
+
|
477
|
+
|
478
|
+
</span>
|
479
|
+
|
480
|
+
|
481
|
+
|
482
|
+
|
483
|
+
|
484
|
+
|
485
|
+
|
486
|
+
|
487
|
+
|
488
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
489
|
+
|
490
|
+
</li>
|
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>
|
533
|
+
|
534
|
+
</li>
|
535
|
+
|
536
|
+
|
537
|
+
</ul>
|
538
|
+
|
539
|
+
|
540
|
+
|
541
|
+
|
542
|
+
|
543
|
+
|
544
|
+
|
545
|
+
|
546
|
+
|
547
|
+
|
548
|
+
|
549
|
+
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="../Base.html" title="UiBibz::Ui::Base (class)">Base</a></span></h3>
|
550
|
+
<p class="inherited"><span class='object_link'><a href="../Base.html#i18n_set%3F-instance_method" title="UiBibz::Ui::Base#i18n_set? (method)">#i18n_set?</a></span></p>
|
551
|
+
|
552
|
+
<div id="constructor_details" class="method_details_list">
|
553
|
+
<h2>Constructor Details</h2>
|
554
|
+
|
555
|
+
<div class="method_details first">
|
556
|
+
<h3 class="signature first" id="initialize-instance_method">
|
557
|
+
|
558
|
+
- (<tt><span class='object_link'><a href="" title="UiBibz::Ui::Core::Component (class)">Component</a></span></tt>) <strong>initialize</strong>(content = nil, options = nil, html_options = nil, &block)
|
559
|
+
|
560
|
+
|
561
|
+
|
562
|
+
|
563
|
+
|
564
|
+
</h3><div class="docstring">
|
565
|
+
<div class="discussion">
|
566
|
+
|
567
|
+
<p>Returns a new instance of Component</p>
|
568
|
+
|
569
|
+
|
570
|
+
</div>
|
571
|
+
</div>
|
572
|
+
<div class="tags">
|
573
|
+
|
574
|
+
|
575
|
+
</div><table class="source_code">
|
576
|
+
<tr>
|
577
|
+
<td>
|
578
|
+
<pre class="lines">
|
579
|
+
|
580
|
+
|
581
|
+
43
|
582
|
+
44
|
583
|
+
45
|
584
|
+
46
|
585
|
+
47
|
586
|
+
48
|
587
|
+
49
|
588
|
+
50
|
589
|
+
51
|
590
|
+
52
|
591
|
+
53
|
592
|
+
54
|
593
|
+
55
|
594
|
+
56
|
595
|
+
57</pre>
|
596
|
+
</td>
|
597
|
+
<td>
|
598
|
+
<pre class="code"><span class="info file"># File 'lib/ui_bibz/ui/core/component.rb', line 43</span>
|
599
|
+
|
600
|
+
<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
|
+
<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>
|
602
|
+
<span class='ivar'>@html_options</span><span class='comma'>,</span> <span class='ivar'>@options</span> <span class='op'>=</span> <span class='id identifier rubyid_options'>options</span><span class='comma'>,</span> <span class='id identifier rubyid_content'>content</span>
|
603
|
+
<span class='id identifier rubyid_context'>context</span> <span class='op'>=</span> <span class='id identifier rubyid_eval'>eval</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>self</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='id identifier rubyid_block'>block</span><span class='period'>.</span><span class='id identifier rubyid_binding'>binding</span><span class='rparen'>)</span>
|
604
|
+
<span class='ivar'>@content</span> <span class='op'>=</span> <span class='id identifier rubyid_context'>context</span><span class='period'>.</span><span class='id identifier rubyid_capture'>capture</span><span class='lparen'>(</span><span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
605
|
+
<span class='kw'>else</span>
|
606
|
+
<span class='kw'>if</span> <span class='id identifier rubyid_content'>content</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>
|
607
|
+
<span class='ivar'>@html_options</span><span class='comma'>,</span> <span class='ivar'>@options</span> <span class='op'>=</span> <span class='id identifier rubyid_options'>options</span><span class='comma'>,</span> <span class='id identifier rubyid_content'>content</span>
|
608
|
+
<span class='kw'>else</span>
|
609
|
+
<span class='ivar'>@html_options</span><span class='comma'>,</span> <span class='ivar'>@options</span><span class='comma'>,</span> <span class='ivar'>@content</span> <span class='op'>=</span> <span class='id identifier rubyid_html_options'>html_options</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='comma'>,</span> <span class='id identifier rubyid_content'>content</span>
|
610
|
+
<span class='kw'>end</span>
|
611
|
+
<span class='kw'>end</span>
|
612
|
+
<span class='ivar'>@html_options</span> <span class='op'>=</span> <span class='ivar'>@html_options</span> <span class='op'>||</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
|
613
|
+
<span class='ivar'>@options</span> <span class='op'>=</span> <span class='ivar'>@options</span> <span class='op'>||</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
|
614
|
+
<span class='kw'>end</span></pre>
|
615
|
+
</td>
|
616
|
+
</tr>
|
617
|
+
</table>
|
618
|
+
</div>
|
619
|
+
|
620
|
+
</div>
|
621
|
+
|
622
|
+
<div id="instance_attr_details" class="attr_details">
|
623
|
+
<h2>Instance Attribute Details</h2>
|
624
|
+
|
625
|
+
|
626
|
+
<span id="content=-instance_method"></span>
|
627
|
+
<div class="method_details first">
|
628
|
+
<h3 class="signature first" id="content-instance_method">
|
629
|
+
|
630
|
+
- (<tt>Object</tt>) <strong>content</strong>
|
631
|
+
|
632
|
+
|
633
|
+
|
634
|
+
|
635
|
+
|
636
|
+
</h3><div class="docstring">
|
637
|
+
<div class="discussion">
|
638
|
+
|
639
|
+
<p>Returns the value of attribute content</p>
|
640
|
+
|
641
|
+
|
642
|
+
</div>
|
643
|
+
</div>
|
644
|
+
<div class="tags">
|
645
|
+
|
646
|
+
|
647
|
+
</div><table class="source_code">
|
648
|
+
<tr>
|
649
|
+
<td>
|
650
|
+
<pre class="lines">
|
651
|
+
|
652
|
+
|
653
|
+
41
|
654
|
+
42
|
655
|
+
43</pre>
|
656
|
+
</td>
|
657
|
+
<td>
|
658
|
+
<pre class="code"><span class="info file"># File 'lib/ui_bibz/ui/core/component.rb', line 41</span>
|
659
|
+
|
660
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_content'>content</span>
|
661
|
+
<span class='ivar'>@content</span>
|
662
|
+
<span class='kw'>end</span></pre>
|
663
|
+
</td>
|
664
|
+
</tr>
|
665
|
+
</table>
|
666
|
+
</div>
|
667
|
+
|
668
|
+
|
669
|
+
<span id="html_options=-instance_method"></span>
|
670
|
+
<div class="method_details ">
|
671
|
+
<h3 class="signature " id="html_options-instance_method">
|
672
|
+
|
673
|
+
- (<tt>Object</tt>) <strong>html_options</strong>
|
674
|
+
|
675
|
+
|
676
|
+
|
677
|
+
|
678
|
+
|
679
|
+
</h3><div class="docstring">
|
680
|
+
<div class="discussion">
|
681
|
+
|
682
|
+
<p>Returns the value of attribute html_options</p>
|
683
|
+
|
684
|
+
|
685
|
+
</div>
|
686
|
+
</div>
|
687
|
+
<div class="tags">
|
688
|
+
|
689
|
+
|
690
|
+
</div><table class="source_code">
|
691
|
+
<tr>
|
692
|
+
<td>
|
693
|
+
<pre class="lines">
|
694
|
+
|
695
|
+
|
696
|
+
41
|
697
|
+
42
|
698
|
+
43</pre>
|
699
|
+
</td>
|
700
|
+
<td>
|
701
|
+
<pre class="code"><span class="info file"># File 'lib/ui_bibz/ui/core/component.rb', line 41</span>
|
702
|
+
|
703
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_html_options'>html_options</span>
|
704
|
+
<span class='ivar'>@html_options</span>
|
705
|
+
<span class='kw'>end</span></pre>
|
706
|
+
</td>
|
707
|
+
</tr>
|
708
|
+
</table>
|
709
|
+
</div>
|
710
|
+
|
711
|
+
|
712
|
+
<span id="options=-instance_method"></span>
|
713
|
+
<div class="method_details ">
|
714
|
+
<h3 class="signature " id="options-instance_method">
|
715
|
+
|
716
|
+
- (<tt>Object</tt>) <strong>options</strong>
|
717
|
+
|
718
|
+
|
719
|
+
|
720
|
+
|
721
|
+
|
722
|
+
</h3><div class="docstring">
|
723
|
+
<div class="discussion">
|
724
|
+
|
725
|
+
<p>Returns the value of attribute options</p>
|
726
|
+
|
727
|
+
|
728
|
+
</div>
|
729
|
+
</div>
|
730
|
+
<div class="tags">
|
731
|
+
|
732
|
+
|
733
|
+
</div><table class="source_code">
|
734
|
+
<tr>
|
735
|
+
<td>
|
736
|
+
<pre class="lines">
|
737
|
+
|
738
|
+
|
739
|
+
41
|
740
|
+
42
|
741
|
+
43</pre>
|
742
|
+
</td>
|
743
|
+
<td>
|
744
|
+
<pre class="code"><span class="info file"># File 'lib/ui_bibz/ui/core/component.rb', line 41</span>
|
745
|
+
|
746
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_options'>options</span>
|
747
|
+
<span class='ivar'>@options</span>
|
748
|
+
<span class='kw'>end</span></pre>
|
749
|
+
</td>
|
750
|
+
</tr>
|
751
|
+
</table>
|
752
|
+
</div>
|
753
|
+
|
754
|
+
</div>
|
755
|
+
|
756
|
+
|
757
|
+
<div id="instance_method_details" class="method_details_list">
|
758
|
+
<h2>Instance Method Details</h2>
|
759
|
+
|
760
|
+
|
761
|
+
<div class="method_details first">
|
762
|
+
<h3 class="signature first" id="add_classes-instance_method">
|
763
|
+
|
764
|
+
- (<tt>Object</tt>) <strong>add_classes</strong>(*classes)
|
765
|
+
|
766
|
+
|
767
|
+
|
768
|
+
|
769
|
+
|
770
|
+
</h3><table class="source_code">
|
771
|
+
<tr>
|
772
|
+
<td>
|
773
|
+
<pre class="lines">
|
774
|
+
|
775
|
+
|
776
|
+
132
|
777
|
+
133
|
778
|
+
134</pre>
|
779
|
+
</td>
|
780
|
+
<td>
|
781
|
+
<pre class="code"><span class="info file"># File 'lib/ui_bibz/ui/core/component.rb', line 132</span>
|
782
|
+
|
783
|
+
<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
|
+
<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>
|
785
|
+
<span class='kw'>end</span></pre>
|
786
|
+
</td>
|
787
|
+
</tr>
|
788
|
+
</table>
|
789
|
+
</div>
|
790
|
+
|
791
|
+
<div class="method_details ">
|
792
|
+
<h3 class="signature " id="badge_html-instance_method">
|
793
|
+
|
794
|
+
- (<tt>Object</tt>) <strong>badge_html</strong>
|
795
|
+
|
796
|
+
|
797
|
+
|
798
|
+
|
799
|
+
|
800
|
+
</h3><table class="source_code">
|
801
|
+
<tr>
|
802
|
+
<td>
|
803
|
+
<pre class="lines">
|
804
|
+
|
805
|
+
|
806
|
+
94
|
807
|
+
95
|
808
|
+
96</pre>
|
809
|
+
</td>
|
810
|
+
<td>
|
811
|
+
<pre class="code"><span class="info file"># File 'lib/ui_bibz/ui/core/component.rb', line 94</span>
|
812
|
+
|
813
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_badge_html'>badge_html</span>
|
814
|
+
<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>
|
815
|
+
<span class='kw'>end</span></pre>
|
816
|
+
</td>
|
817
|
+
</tr>
|
818
|
+
</table>
|
819
|
+
</div>
|
820
|
+
|
821
|
+
<div class="method_details ">
|
822
|
+
<h3 class="signature " id="class_and_html_options-instance_method">
|
823
|
+
|
824
|
+
- (<tt>Object</tt>) <strong>class_and_html_options</strong>(classes = nil)
|
825
|
+
|
826
|
+
|
827
|
+
|
828
|
+
|
829
|
+
|
830
|
+
</h3><table class="source_code">
|
831
|
+
<tr>
|
832
|
+
<td>
|
833
|
+
<pre class="lines">
|
834
|
+
|
835
|
+
|
836
|
+
98
|
837
|
+
99
|
838
|
+
100
|
839
|
+
101
|
840
|
+
102
|
841
|
+
103
|
842
|
+
104
|
843
|
+
105
|
844
|
+
106
|
845
|
+
107
|
846
|
+
108
|
847
|
+
109
|
848
|
+
110</pre>
|
849
|
+
</td>
|
850
|
+
<td>
|
851
|
+
<pre class="code"><span class="info file"># File 'lib/ui_bibz/ui/core/component.rb', line 98</span>
|
852
|
+
|
853
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_class_and_html_options'>class_and_html_options</span> <span class='id identifier rubyid_classes'>classes</span> <span class='op'>=</span> <span class='kw'>nil</span>
|
854
|
+
<span class='id identifier rubyid_options_class'>options_class</span> <span class='op'>=</span> <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:class</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>
|
855
|
+
<span class='id identifier rubyid_cls'>cls</span> <span class='op'>=</span> <span class='lbracket'>[</span>
|
856
|
+
<span class='id identifier rubyid_html_options'>html_options</span><span class='lbracket'>[</span><span class='symbol'>:class</span><span class='rbracket'>]</span><span class='comma'>,</span>
|
857
|
+
<span class='id identifier rubyid_status'>status</span><span class='comma'>,</span>
|
858
|
+
<span class='id identifier rubyid_state'>state</span><span class='comma'>,</span>
|
859
|
+
<span class='id identifier rubyid_options_class'>options_class</span>
|
860
|
+
<span class='rbracket'>]</span>
|
861
|
+
<span class='id identifier rubyid_cls'>cls</span> <span class='op'><<</span> <span class='id identifier rubyid_classes'>classes</span> <span class='kw'>unless</span> <span class='id identifier rubyid_classes'>classes</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
862
|
+
<span class='id identifier rubyid_cls'>cls</span> <span class='op'>=</span> <span class='id identifier rubyid_cls'>cls</span><span class='period'>.</span><span class='id identifier rubyid_flatten'>flatten</span><span class='period'>.</span><span class='id identifier rubyid_compact'>compact</span>
|
863
|
+
<span class='id identifier rubyid_html_options'>html_options</span><span class='lbracket'>[</span><span class='symbol'>:class</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_cls'>cls</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> <span class='kw'>unless</span> <span class='id identifier rubyid_cls'>cls</span><span class='period'>.</span><span class='id identifier rubyid_empty?'>empty?</span>
|
864
|
+
<span class='id identifier rubyid_html_options'>html_options</span>
|
865
|
+
<span class='kw'>end</span></pre>
|
866
|
+
</td>
|
867
|
+
</tr>
|
868
|
+
</table>
|
869
|
+
</div>
|
870
|
+
|
871
|
+
<div class="method_details ">
|
872
|
+
<h3 class="signature " id="glyph-instance_method">
|
873
|
+
|
874
|
+
- (<tt>Object</tt>) <strong>glyph</strong>
|
875
|
+
|
876
|
+
|
877
|
+
|
878
|
+
|
879
|
+
|
880
|
+
</h3><table class="source_code">
|
881
|
+
<tr>
|
882
|
+
<td>
|
883
|
+
<pre class="lines">
|
884
|
+
|
885
|
+
|
886
|
+
67
|
887
|
+
68
|
888
|
+
69
|
889
|
+
70</pre>
|
890
|
+
</td>
|
891
|
+
<td>
|
892
|
+
<pre class="code"><span class="info file"># File 'lib/ui_bibz/ui/core/component.rb', line 67</span>
|
893
|
+
|
894
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_glyph'>glyph</span>
|
895
|
+
<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>
|
896
|
+
<span class='const'>Glyph</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_glyph_info'>glyph_info</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_render'>render</span> <span class='kw'>unless</span> <span class='id identifier rubyid_glyph_info'>glyph_info</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
897
|
+
<span class='kw'>end</span></pre>
|
898
|
+
</td>
|
899
|
+
</tr>
|
900
|
+
</table>
|
901
|
+
</div>
|
902
|
+
|
903
|
+
<div class="method_details ">
|
904
|
+
<h3 class="signature " id="glyph_and_content_html-instance_method">
|
905
|
+
|
906
|
+
- (<tt>Object</tt>) <strong>glyph_and_content_html</strong>
|
907
|
+
|
908
|
+
|
909
|
+
|
910
|
+
|
911
|
+
|
912
|
+
</h3><table class="source_code">
|
913
|
+
<tr>
|
914
|
+
<td>
|
915
|
+
<pre class="lines">
|
916
|
+
|
917
|
+
|
918
|
+
63
|
919
|
+
64
|
920
|
+
65</pre>
|
921
|
+
</td>
|
922
|
+
<td>
|
923
|
+
<pre class="code"><span class="info file"># File 'lib/ui_bibz/ui/core/component.rb', line 63</span>
|
924
|
+
|
925
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_glyph_and_content_html'>glyph_and_content_html</span>
|
926
|
+
<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>
|
927
|
+
<span class='kw'>end</span></pre>
|
928
|
+
</td>
|
929
|
+
</tr>
|
930
|
+
</table>
|
931
|
+
</div>
|
932
|
+
|
933
|
+
<div class="method_details ">
|
934
|
+
<h3 class="signature " id="glyph_with_space-instance_method">
|
935
|
+
|
936
|
+
- (<tt>Object</tt>) <strong>glyph_with_space</strong>
|
937
|
+
|
938
|
+
|
939
|
+
|
940
|
+
|
941
|
+
|
942
|
+
</h3><table class="source_code">
|
943
|
+
<tr>
|
944
|
+
<td>
|
945
|
+
<pre class="lines">
|
946
|
+
|
947
|
+
|
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
|
+
|
955
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_glyph_with_space'>glyph_with_space</span>
|
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>
|
961
|
+
</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
|
+
|
969
|
+
|
970
|
+
|
971
|
+
|
972
|
+
</h3><table class="source_code">
|
973
|
+
<tr>
|
974
|
+
<td>
|
975
|
+
<pre class="lines">
|
976
|
+
|
977
|
+
|
978
|
+
112
|
979
|
+
113
|
980
|
+
114
|
981
|
+
115</pre>
|
982
|
+
</td>
|
983
|
+
<td>
|
984
|
+
<pre class="code"><span class="info file"># File 'lib/ui_bibz/ui/core/component.rb', line 112</span>
|
985
|
+
|
986
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_options_in_html_options'>options_in_html_options</span> <span class='id identifier rubyid_opts'>opts</span>
|
987
|
+
<span class='id identifier rubyid_html_options'>html_options</span><span class='period'>.</span><span class='id identifier rubyid_merge!'>merge!</span><span class='lparen'>(</span><span class='id identifier rubyid_opts'>opts</span><span class='rparen'>)</span> <span class='kw'>unless</span> <span class='id identifier rubyid_opts'>opts</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
988
|
+
<span class='id identifier rubyid_html_options'>html_options</span>
|
989
|
+
<span class='kw'>end</span></pre>
|
990
|
+
</td>
|
991
|
+
</tr>
|
992
|
+
</table>
|
993
|
+
</div>
|
994
|
+
|
995
|
+
<div class="method_details ">
|
996
|
+
<h3 class="signature " id="render-instance_method">
|
997
|
+
|
998
|
+
- (<tt>Object</tt>) <strong>render</strong>
|
999
|
+
|
1000
|
+
|
1001
|
+
|
1002
|
+
|
1003
|
+
|
1004
|
+
</h3><table class="source_code">
|
1005
|
+
<tr>
|
1006
|
+
<td>
|
1007
|
+
<pre class="lines">
|
1008
|
+
|
1009
|
+
|
1010
|
+
59
|
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>
|
1023
|
+
</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
|
+
|
1031
|
+
|
1032
|
+
|
1033
|
+
|
1034
|
+
</h3><table class="source_code">
|
1035
|
+
<tr>
|
1036
|
+
<td>
|
1037
|
+
<pre class="lines">
|
1038
|
+
|
1039
|
+
|
1040
|
+
88
|
1041
|
+
89
|
1042
|
+
90
|
1043
|
+
91
|
1044
|
+
92</pre>
|
1045
|
+
</td>
|
1046
|
+
<td>
|
1047
|
+
<pre class="code"><span class="info file"># File 'lib/ui_bibz/ui/core/component.rb', line 88</span>
|
1048
|
+
|
1049
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_state'>state</span>
|
1050
|
+
<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>
|
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>
|
1053
|
+
<span class='kw'>end</span></pre>
|
1054
|
+
</td>
|
1055
|
+
</tr>
|
1056
|
+
</table>
|
1057
|
+
</div>
|
1058
|
+
|
1059
|
+
<div class="method_details ">
|
1060
|
+
<h3 class="signature " id="states-instance_method">
|
1061
|
+
|
1062
|
+
- (<tt>Object</tt>) <strong>states</strong>
|
1063
|
+
|
1064
|
+
|
1065
|
+
|
1066
|
+
|
1067
|
+
|
1068
|
+
</h3><table class="source_code">
|
1069
|
+
<tr>
|
1070
|
+
<td>
|
1071
|
+
<pre class="lines">
|
1072
|
+
|
1073
|
+
|
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
|
+
|
1088
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_states'>states</span>
|
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>
|
1101
|
+
</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
|
+
|
1109
|
+
|
1110
|
+
|
1111
|
+
|
1112
|
+
</h3><table class="source_code">
|
1113
|
+
<tr>
|
1114
|
+
<td>
|
1115
|
+
<pre class="lines">
|
1116
|
+
|
1117
|
+
|
1118
|
+
117
|
1119
|
+
118
|
1120
|
+
119</pre>
|
1121
|
+
</td>
|
1122
|
+
<td>
|
1123
|
+
<pre class="code"><span class="info file"># File 'lib/ui_bibz/ui/core/component.rb', line 117</span>
|
1124
|
+
|
1125
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_status'>status</span>
|
1126
|
+
<span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:status</span><span class='rbracket'>]</span>
|
1127
|
+
<span class='kw'>end</span></pre>
|
1128
|
+
</td>
|
1129
|
+
</tr>
|
1130
|
+
</table>
|
1131
|
+
</div>
|
1132
|
+
|
1133
|
+
</div>
|
1134
|
+
|
1135
|
+
</div>
|
1136
|
+
|
1137
|
+
<div id="footer">
|
1138
|
+
Generated on Wed Jul 8 15:00:16 2015 by
|
1139
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1140
|
+
0.8.7.6 (ruby-1.9.3).
|
1141
|
+
</div>
|
1142
|
+
|
1143
|
+
</body>
|
1144
|
+
</html>
|