ui_bibz 2.0.0.alpha10 → 2.0.0.alpha11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +9 -7
- data/app/assets/stylesheets/table.sass +2 -0
- data/app/assets/stylesheets/ui_bibz.sass +0 -2
- data/lib/ui_bibz/ui/core/alert.rb +4 -4
- data/lib/ui_bibz/ui/core/breadcrumb/breadcrumb.rb +2 -2
- data/lib/ui_bibz/ui/core/breadcrumb/components/breadcrumb_link.rb +2 -2
- data/lib/ui_bibz/ui/core/button/button.rb +10 -10
- data/lib/ui_bibz/ui/core/button/button_choice.rb +5 -5
- data/lib/ui_bibz/ui/core/button/button_dropdown.rb +3 -3
- data/lib/ui_bibz/ui/core/button/button_group.rb +5 -1
- data/lib/ui_bibz/ui/core/button/button_link.rb +2 -2
- data/lib/ui_bibz/ui/core/button/button_split_dropdown.rb +5 -5
- data/lib/ui_bibz/ui/core/card/card.rb +4 -4
- data/lib/ui_bibz/ui/core/card/components/block/card_block_text.rb +1 -1
- data/lib/ui_bibz/ui/core/component.rb +7 -7
- data/lib/ui_bibz/ui/core/dropdown/components/dropdown_link.rb +2 -2
- data/lib/ui_bibz/ui/core/dropdown/dropdown.rb +6 -6
- data/lib/ui_bibz/ui/core/glyph.rb +3 -3
- data/lib/ui_bibz/ui/core/input/autocomplete_field.rb +7 -1
- data/lib/ui_bibz/ui/core/input/dropdown_select_field.rb +2 -2
- data/lib/ui_bibz/ui/core/input/formula_field.rb +1 -1
- data/lib/ui_bibz/ui/core/input/multi_select_field.rb +2 -2
- data/lib/ui_bibz/ui/core/input/surround_field.rb +9 -1
- data/lib/ui_bibz/ui/core/input/switch_field.rb +4 -4
- data/lib/ui_bibz/ui/core/label.rb +4 -4
- data/lib/ui_bibz/ui/core/list/components/list.rb +7 -7
- data/lib/ui_bibz/ui/core/list/list_group.rb +5 -5
- data/lib/ui_bibz/ui/core/nav/components/nav_dropdown.rb +2 -2
- data/lib/ui_bibz/ui/core/nav/components/nav_link.rb +3 -3
- data/lib/ui_bibz/ui/core/nav/components/nav_link_link.rb +1 -1
- data/lib/ui_bibz/ui/core/nav/components/navbar_nav.rb +1 -1
- data/lib/ui_bibz/ui/core/nav/nav.rb +1 -1
- data/lib/ui_bibz/ui/core/nav/navbar.rb +3 -3
- data/lib/ui_bibz/ui/core/progress.rb +5 -5
- data/lib/ui_bibz/ui/core/stars.rb +3 -3
- data/lib/ui_bibz/ui/ux/table/components/actions.rb +4 -0
- data/lib/ui_bibz/ui/ux/table/components/as.rb +8 -4
- data/lib/ui_bibz/ui/ux/table/components/column.rb +17 -16
- data/lib/ui_bibz/ui/ux/table/components/thead.rb +4 -4
- data/lib/ui_bibz/ui/ux/table/table.rb +8 -8
- data/lib/ui_bibz/ui/ux/table/table_card.rb +4 -4
- data/lib/ui_bibz/version.rb +1 -1
- data/test/dummy/db/schema.rb +1 -1
- data/test/ui/breadcrumb_test.rb +2 -2
- data/test/ui/button_test.rb +24 -24
- data/test/ui/card_test.rb +5 -5
- data/test/ui/component_test.rb +2 -2
- data/test/ui/dropdown_test.rb +1 -1
- data/test/ui/input_switch_field_test.rb +3 -3
- data/test/ui/inputs_test.rb +5 -5
- data/test/ui/list_group_test.rb +5 -5
- data/test/ui/nav_test.rb +3 -3
- data/test/ui/stars_test.rb +2 -2
- data/test/ui/table_test.rb +7 -7
- data/test/ui_helper_test.rb +16 -16
- data/ui_bibz.gemspec +2 -2
- metadata +5 -109
- data/doc/UiBibz.html +0 -129
- data/doc/UiBibz/Concerns.html +0 -115
- data/doc/UiBibz/Concerns/Models.html +0 -115
- data/doc/UiBibz/Concerns/Models/Searchable.html +0 -120
- data/doc/UiBibz/Concerns/Models/Searchable/ClassMethods.html +0 -174
- data/doc/UiBibz/Helpers.html +0 -115
- data/doc/UiBibz/Helpers/MetaHelper.html +0 -273
- data/doc/UiBibz/Helpers/UiCoreHelper.html +0 -1234
- data/doc/UiBibz/Helpers/UiUxHelper.html +0 -463
- data/doc/UiBibz/Helpers/UtilsHelper.html +0 -187
- data/doc/UiBibz/Rails.html +0 -115
- data/doc/UiBibz/Rails/Engine.html +0 -123
- data/doc/UiBibz/Ui.html +0 -119
- data/doc/UiBibz/Ui/Base.html +0 -304
- data/doc/UiBibz/Ui/Core.html +0 -128
- data/doc/UiBibz/Ui/Core/Alert.html +0 -383
- data/doc/UiBibz/Ui/Core/Bar.html +0 -372
- data/doc/UiBibz/Ui/Core/Breadcrumb.html +0 -442
- data/doc/UiBibz/Ui/Core/BreadcrumbLink.html +0 -369
- data/doc/UiBibz/Ui/Core/Button.html +0 -380
- data/doc/UiBibz/Ui/Core/ButtonDropdown.html +0 -401
- data/doc/UiBibz/Ui/Core/ButtonGroup.html +0 -372
- data/doc/UiBibz/Ui/Core/ButtonLink.html +0 -382
- data/doc/UiBibz/Ui/Core/ButtonSplitDropdown.html +0 -403
- data/doc/UiBibz/Ui/Core/Col.html +0 -373
- data/doc/UiBibz/Ui/Core/Component.html +0 -1087
- data/doc/UiBibz/Ui/Core/Dropdown.html +0 -663
- data/doc/UiBibz/Ui/Core/DropdownDivider.html +0 -301
- data/doc/UiBibz/Ui/Core/DropdownHeader.html +0 -355
- data/doc/UiBibz/Ui/Core/DropdownLink.html +0 -376
- data/doc/UiBibz/Ui/Core/DropdownList.html +0 -382
- data/doc/UiBibz/Ui/Core/Glyph.html +0 -385
- data/doc/UiBibz/Ui/Core/Jumbotron.html +0 -379
- data/doc/UiBibz/Ui/Core/Label.html +0 -379
- data/doc/UiBibz/Ui/Core/List.html +0 -528
- data/doc/UiBibz/Ui/Core/ListGroup.html +0 -474
- data/doc/UiBibz/Ui/Core/Modal.html +0 -543
- data/doc/UiBibz/Ui/Core/ModalBody.html +0 -353
- data/doc/UiBibz/Ui/Core/ModalFooter.html +0 -353
- data/doc/UiBibz/Ui/Core/ModalHeader.html +0 -359
- data/doc/UiBibz/Ui/Core/Nav.html +0 -515
- data/doc/UiBibz/Ui/Core/NavDropdown.html +0 -391
- data/doc/UiBibz/Ui/Core/NavLink.html +0 -364
- data/doc/UiBibz/Ui/Core/Navbar.html +0 -646
- data/doc/UiBibz/Ui/Core/NavbarForm.html +0 -364
- data/doc/UiBibz/Ui/Core/NavbarNav.html +0 -302
- data/doc/UiBibz/Ui/Core/NavbarText.html +0 -355
- data/doc/UiBibz/Ui/Core/Panel.html +0 -617
- data/doc/UiBibz/Ui/Core/ProgressBar.html +0 -462
- data/doc/UiBibz/Ui/Core/Row.html +0 -350
- data/doc/UiBibz/Ui/Core/Stars.html +0 -371
- data/doc/UiBibz/Ui/Ux.html +0 -128
- data/doc/UiBibz/Ui/Ux/Actionable.html +0 -478
- data/doc/UiBibz/Ui/Ux/Actions.html +0 -602
- data/doc/UiBibz/Ui/Ux/Column.html +0 -1249
- data/doc/UiBibz/Ui/Ux/Columns.html +0 -338
- data/doc/UiBibz/Ui/Ux/Grid.html +0 -485
- data/doc/UiBibz/Ui/Ux/Paginable.html +0 -381
- data/doc/UiBibz/Ui/Ux/Searchable.html +0 -376
- data/doc/UiBibz/Ui/Ux/Sortable.html +0 -300
- data/doc/UiBibz/Ui/Ux/Store.html +0 -1176
- data/doc/UiBibz/Ui/Ux/Table.html +0 -694
- data/doc/UiBibz/Ui/Ux/TableAction.html +0 -309
- data/doc/UiBibz/Ui/Ux/TablePagination.html +0 -342
- data/doc/UiBibz/Ui/Ux/TablePaginationPerPage.html +0 -348
- data/doc/UiBibz/Ui/Ux/TablePanel.html +0 -680
- data/doc/UiBibz/Ui/Ux/TableSearchField.html +0 -304
- data/doc/UiBibz/Utils.html +0 -115
- data/doc/UiBibz/Utils/Internationalization.html +0 -262
- data/doc/_index.html +0 -706
- data/doc/class_list.html +0 -58
- data/doc/css/common.css +0 -1
- data/doc/css/full_list.css +0 -57
- data/doc/css/style.css +0 -339
- data/doc/file.README.html +0 -1261
- data/doc/file_list.html +0 -60
- data/doc/frames.html +0 -26
- data/doc/images/alert.png +0 -0
- data/doc/images/breadcrumb.png +0 -0
- data/doc/images/button.png +0 -0
- data/doc/images/button_dropdown.png +0 -0
- data/doc/images/button_group.png +0 -0
- data/doc/images/button_link.png +0 -0
- data/doc/images/button_split_dropdown.png +0 -0
- data/doc/images/etiquette.png +0 -0
- data/doc/images/glyph.png +0 -0
- data/doc/images/list.png +0 -0
- data/doc/images/modal.png +0 -0
- data/doc/images/nav.png +0 -0
- data/doc/images/navbar.png +0 -0
- data/doc/images/panel.png +0 -0
- data/doc/images/progress_bar.png +0 -0
- data/doc/images/stars.png +0 -0
- data/doc/images/table.png +0 -0
- data/doc/images/table_pagination_per_page.png +0 -0
- data/doc/images/table_panel.png +0 -0
- data/doc/images/table_search_field.png +0 -0
- data/doc/images/ui-bibz-logo-without-border.gif +0 -0
- data/doc/images/ui-bibz-logo.gif +0 -0
- data/doc/index.html +0 -1261
- data/doc/js/app.js +0 -219
- data/doc/js/full_list.js +0 -181
- data/doc/js/jquery.js +0 -4
- data/doc/method_list.html +0 -1329
- data/doc/top-level-namespace.html +0 -112
data/doc/UiBibz/Ui/Core/Col.html
DELETED
@@ -1,373 +0,0 @@
|
|
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::Col
|
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/Col.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">Col</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::Col
|
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="Component.html" title="UiBibz::Ui::Core::Component (class)">Component</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"><span class='object_link'><a href="Component.html" title="UiBibz::Ui::Core::Component (class)">Component</a></span></li>
|
84
|
-
|
85
|
-
<li class="next">UiBibz::Ui::Core::Col</li>
|
86
|
-
|
87
|
-
</ul>
|
88
|
-
<a href="#" class="inheritanceTree">show all</a>
|
89
|
-
|
90
|
-
</dd>
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
<dt class="r2 last">Defined in:</dt>
|
101
|
-
<dd class="r2 last">lib/ui_bibz/ui/core/col.rb</dd>
|
102
|
-
|
103
|
-
</dl>
|
104
|
-
<div class="clear"></div>
|
105
|
-
|
106
|
-
<h2>Overview</h2><div class="docstring">
|
107
|
-
<div class="discussion">
|
108
|
-
|
109
|
-
<p>Create a col</p>
|
110
|
-
|
111
|
-
<p>This element is an extend of UiBibz::Ui::Core::Component.</p>
|
112
|
-
|
113
|
-
<h4 id="label-Attributes">Attributes</h4>
|
114
|
-
<ul><li>
|
115
|
-
<p><code>content</code> - Content of element</p>
|
116
|
-
</li><li>
|
117
|
-
<p><code>options</code> - Options of element</p>
|
118
|
-
</li><li>
|
119
|
-
<p><code>html_options</code> - Html Options of element</p>
|
120
|
-
</li></ul>
|
121
|
-
|
122
|
-
<h4 id="label-Options">Options</h4>
|
123
|
-
|
124
|
-
<p>You can add HTML attributes using the <code>html_options</code>. You can
|
125
|
-
pass arguments in options attribute:</p>
|
126
|
-
<ul><li>
|
127
|
-
<p><code>num</code> - Integer | 0..12</p>
|
128
|
-
</li><li>
|
129
|
-
<p><code>offset</code> - Integer</p>
|
130
|
-
</li><li>
|
131
|
-
<p><code>size</code> - Integer</p>
|
132
|
-
</li></ul>
|
133
|
-
|
134
|
-
<h4 id="label-Signatures">Signatures</h4>
|
135
|
-
|
136
|
-
<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'>Col</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='lbrace'>{</span><span class='rbrace'>}</span><span class='comma'>,</span> <span class='id identifier rubyid_html_options'>html_options</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_render'>render</span>
|
137
|
-
|
138
|
-
<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'>Col</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='lbrace'>{</span><span class='rbrace'>}</span><span class='comma'>,</span> <span class='id identifier rubyid_html_options'>html_options</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span> <span class='kw'>do</span>
|
139
|
-
<span class='id identifier rubyid_content'>content</span>
|
140
|
-
<span class='kw'>end</span><span class='period'>.</span><span class='id identifier rubyid_render'>render</span>
|
141
|
-
</code></pre>
|
142
|
-
|
143
|
-
<h4 id="label-Examples">Examples</h4>
|
144
|
-
|
145
|
-
<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'>Col</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='lbrace'>{</span><span class='label'>num:</span> <span class='int'>2</span><span class='comma'>,</span> <span class='label'>offset:</span> <span class='int'>1</span><span class='comma'>,</span> <span class='label'>size:</span> <span class='int'>3</span><span class='rbrace'>}</span><span class='comma'>,</span> <span class='label'>class:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>test</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span> <span class='kw'>do</span>
|
146
|
-
<span class='comment'>#content
|
147
|
-
</span><span class='kw'>end</span>
|
148
|
-
|
149
|
-
<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'>Col</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='lbracket'>[</span><span class='lbrace'>{</span><span class='label'>num:</span> <span class='int'>2</span><span class='comma'>,</span> <span class='label'>offset:</span> <span class='int'>1</span><span class='comma'>,</span> <span class='label'>size:</span> <span class='int'>3</span><span class='rbrace'>}</span><span class='comma'>,</span> <span class='lbrace'>{</span> <span class='label'>num:</span> <span class='int'>3</span><span class='rbrace'>}</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'>test</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span> <span class='kw'>do</span>
|
150
|
-
<span class='comment'>#content
|
151
|
-
</span><span class='kw'>end</span>
|
152
|
-
</code></pre>
|
153
|
-
|
154
|
-
<h4 id="label-Helper">Helper</h4>
|
155
|
-
|
156
|
-
<pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_col'>col</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='comma'>,</span> <span class='id identifier rubyid_html_options'>html_options</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span> <span class='kw'>do</span>
|
157
|
-
<span class='comment'># content
|
158
|
-
</span><span class='kw'>end</span>
|
159
|
-
</code></pre>
|
160
|
-
|
161
|
-
|
162
|
-
</div>
|
163
|
-
</div>
|
164
|
-
<div class="tags">
|
165
|
-
|
166
|
-
|
167
|
-
</div>
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
<h2>Instance Attribute Summary</h2>
|
174
|
-
|
175
|
-
<h3 class="inherited">Attributes inherited from <span class='object_link'><a href="Component.html" title="UiBibz::Ui::Core::Component (class)">Component</a></span></h3>
|
176
|
-
<p class="inherited"><span class='object_link'><a href="Component.html#content-instance_method" title="UiBibz::Ui::Core::Component#content (method)">#content</a></span>, <span class='object_link'><a href="Component.html#html_options-instance_method" title="UiBibz::Ui::Core::Component#html_options (method)">#html_options</a></span>, <span class='object_link'><a href="Component.html#options-instance_method" title="UiBibz::Ui::Core::Component#options (method)">#options</a></span></p>
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
<h3 class="inherited">Attributes inherited from <span class='object_link'><a href="../Base.html" title="UiBibz::Ui::Base (class)">Base</a></span></h3>
|
181
|
-
<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>
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
<h2>
|
186
|
-
Instance Method Summary
|
187
|
-
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
188
|
-
</h2>
|
189
|
-
|
190
|
-
<ul class="summary">
|
191
|
-
|
192
|
-
<li class="public ">
|
193
|
-
<span class="summary_signature">
|
194
|
-
|
195
|
-
<a href="#initialize-instance_method" title="#initialize (instance method)">- (Col) <strong>initialize</strong>(content = nil, options = nil, html_options = nil, &block) </a>
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
</span>
|
200
|
-
|
201
|
-
|
202
|
-
<span class="note title constructor">constructor</span>
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
<span class="summary_desc"><div class='inline'>
|
212
|
-
<p>See UiBibz::Ui::Core::Component.initialize.</p>
|
213
|
-
</div></span>
|
214
|
-
|
215
|
-
</li>
|
216
|
-
|
217
|
-
|
218
|
-
<li class="public ">
|
219
|
-
<span class="summary_signature">
|
220
|
-
|
221
|
-
<a href="#render-instance_method" title="#render (instance method)">- (Object) <strong>render</strong> </a>
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
</span>
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
<span class="summary_desc"><div class='inline'>
|
236
|
-
<p>Render html tag.</p>
|
237
|
-
</div></span>
|
238
|
-
|
239
|
-
</li>
|
240
|
-
|
241
|
-
|
242
|
-
</ul>
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="Component.html" title="UiBibz::Ui::Core::Component (class)">Component</a></span></h3>
|
255
|
-
<p class="inherited"><span class='object_link'><a href="Component.html#add_classes-instance_method" title="UiBibz::Ui::Core::Component#add_classes (method)">#add_classes</a></span>, <span class='object_link'><a href="Component.html#badge_html-instance_method" title="UiBibz::Ui::Core::Component#badge_html (method)">#badge_html</a></span>, <span class='object_link'><a href="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="Component.html#glyph-instance_method" title="UiBibz::Ui::Core::Component#glyph (method)">#glyph</a></span>, <span class='object_link'><a href="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="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="Component.html#state-instance_method" title="UiBibz::Ui::Core::Component#state (method)">#state</a></span></p>
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="../Base.html" title="UiBibz::Ui::Base (class)">Base</a></span></h3>
|
266
|
-
<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>
|
267
|
-
|
268
|
-
<div id="constructor_details" class="method_details_list">
|
269
|
-
<h2>Constructor Details</h2>
|
270
|
-
|
271
|
-
<div class="method_details first">
|
272
|
-
<h3 class="signature first" id="initialize-instance_method">
|
273
|
-
|
274
|
-
- (<tt><span class='object_link'><a href="" title="UiBibz::Ui::Core::Col (class)">Col</a></span></tt>) <strong>initialize</strong>(content = nil, options = nil, html_options = nil, &block)
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
</h3><div class="docstring">
|
281
|
-
<div class="discussion">
|
282
|
-
|
283
|
-
<p>See UiBibz::Ui::Core::Component.initialize</p>
|
284
|
-
|
285
|
-
|
286
|
-
</div>
|
287
|
-
</div>
|
288
|
-
<div class="tags">
|
289
|
-
|
290
|
-
|
291
|
-
</div><table class="source_code">
|
292
|
-
<tr>
|
293
|
-
<td>
|
294
|
-
<pre class="lines">
|
295
|
-
|
296
|
-
|
297
|
-
48
|
298
|
-
49
|
299
|
-
50
|
300
|
-
51</pre>
|
301
|
-
</td>
|
302
|
-
<td>
|
303
|
-
<pre class="code"><span class="info file"># File 'lib/ui_bibz/ui/core/col.rb', line 48</span>
|
304
|
-
|
305
|
-
<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>
|
306
|
-
<span class='kw'>super</span>
|
307
|
-
<span class='ivar'>@cols</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
|
308
|
-
<span class='kw'>end</span></pre>
|
309
|
-
</td>
|
310
|
-
</tr>
|
311
|
-
</table>
|
312
|
-
</div>
|
313
|
-
|
314
|
-
</div>
|
315
|
-
|
316
|
-
|
317
|
-
<div id="instance_method_details" class="method_details_list">
|
318
|
-
<h2>Instance Method Details</h2>
|
319
|
-
|
320
|
-
|
321
|
-
<div class="method_details first">
|
322
|
-
<h3 class="signature first" id="render-instance_method">
|
323
|
-
|
324
|
-
- (<tt>Object</tt>) <strong>render</strong>
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
</h3><div class="docstring">
|
331
|
-
<div class="discussion">
|
332
|
-
|
333
|
-
<p>Render html tag</p>
|
334
|
-
|
335
|
-
|
336
|
-
</div>
|
337
|
-
</div>
|
338
|
-
<div class="tags">
|
339
|
-
|
340
|
-
|
341
|
-
</div><table class="source_code">
|
342
|
-
<tr>
|
343
|
-
<td>
|
344
|
-
<pre class="lines">
|
345
|
-
|
346
|
-
|
347
|
-
54
|
348
|
-
55
|
349
|
-
56</pre>
|
350
|
-
</td>
|
351
|
-
<td>
|
352
|
-
<pre class="code"><span class="info file"># File 'lib/ui_bibz/ui/core/col.rb', line 54</span>
|
353
|
-
|
354
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_render'>render</span>
|
355
|
-
<span class='id identifier rubyid_content_tag'>content_tag</span> <span class='symbol'>:div</span><span class='comma'>,</span> <span class='ivar'>@content</span><span class='comma'>,</span> <span class='id identifier rubyid_class_and_html_options'>class_and_html_options</span><span class='lparen'>(</span><span class='id identifier rubyid_col_classes'>col_classes</span><span class='rparen'>)</span>
|
356
|
-
<span class='kw'>end</span></pre>
|
357
|
-
</td>
|
358
|
-
</tr>
|
359
|
-
</table>
|
360
|
-
</div>
|
361
|
-
|
362
|
-
</div>
|
363
|
-
|
364
|
-
</div>
|
365
|
-
|
366
|
-
<div id="footer">
|
367
|
-
Generated on Mon Oct 19 15:25:14 2015 by
|
368
|
-
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
369
|
-
0.8.7.6 (ruby-2.2.3).
|
370
|
-
</div>
|
371
|
-
|
372
|
-
</body>
|
373
|
-
</html>
|
@@ -1,1087 +0,0 @@
|
|
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 <code>name</code> using options created by
|
108
|
-
the set of <code>options</code>.</p>
|
109
|
-
|
110
|
-
<h4 id="label-Attributes">Attributes</h4>
|
111
|
-
<ul><li>
|
112
|
-
<p><code>content</code> - Content of element</p>
|
113
|
-
</li><li>
|
114
|
-
<p><code>options</code> - Options of element</p>
|
115
|
-
</li><li>
|
116
|
-
<p><code>html_options</code> - Html Options of element</p>
|
117
|
-
</li></ul>
|
118
|
-
|
119
|
-
<h4 id="label-Options">Options</h4>
|
120
|
-
|
121
|
-
<p>You can add HTML attributes using the <code>html_options</code>. You can
|
122
|
-
pass arguments in options attribute:</p>
|
123
|
-
<ul><li>
|
124
|
-
<p><code>state</code> - State of élement with symbol value:
|
125
|
-
(<code>:default</code>, <code>:primary</code>, <code>:info</code>,
|
126
|
-
<code>:warning</code>, <code>:danger</code>)</p>
|
127
|
-
</li><li>
|
128
|
-
<p><code>glyph</code> - Add glyph with name or hash options</p>
|
129
|
-
<ul><li>
|
130
|
-
<p><code>name</code> - String</p>
|
131
|
-
</li><li>
|
132
|
-
<p><code>size</code> - Integer</p>
|
133
|
-
</li><li>
|
134
|
-
<p><code>type</code> - Symbol</p>
|
135
|
-
</li></ul>
|
136
|
-
</li></ul>
|
137
|
-
|
138
|
-
<h4 id="label-Signatures">Signatures</h4>
|
139
|
-
|
140
|
-
<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>
|
141
|
-
|
142
|
-
<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>
|
143
|
-
<span class='id identifier rubyid_content'>content</span>
|
144
|
-
<span class='kw'>end</span>
|
145
|
-
</code></pre>
|
146
|
-
|
147
|
-
<h4 id="label-Examples">Examples</h4>
|
148
|
-
|
149
|
-
<pre class="code ruby"><code class="ruby">UiBibz::Ui::Core::Component.new(content, { type: :success, glyph: 'eye' },{ class: 'test' })
|
150
|
-
# or
|
151
|
-
UiBibz::Ui::Core::Component.new({glyph: { name: 'eye', size: 3}, { class: 'test' }) do
|
152
|
-
content
|
153
|
-
end</code></pre>
|
154
|
-
|
155
|
-
|
156
|
-
</div>
|
157
|
-
</div>
|
158
|
-
<div class="tags">
|
159
|
-
|
160
|
-
|
161
|
-
</div><div id="subclasses">
|
162
|
-
<h2>Direct Known Subclasses</h2>
|
163
|
-
<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="DropdownHeader.html" title="UiBibz::Ui::Core::DropdownHeader (class)">DropdownHeader</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="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="Modal.html" title="UiBibz::Ui::Core::Modal (class)">Modal</a></span>, <span class='object_link'><a href="ModalBody.html" title="UiBibz::Ui::Core::ModalBody (class)">ModalBody</a></span>, <span class='object_link'><a href="ModalFooter.html" title="UiBibz::Ui::Core::ModalFooter (class)">ModalFooter</a></span>, <span class='object_link'><a href="ModalHeader.html" title="UiBibz::Ui::Core::ModalHeader (class)">ModalHeader</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></p>
|
164
|
-
</div>
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
<h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
|
170
|
-
<ul class="summary">
|
171
|
-
|
172
|
-
<li class="public ">
|
173
|
-
<span class="summary_signature">
|
174
|
-
|
175
|
-
<a href="#content-instance_method" title="#content (instance method)">- (Object) <strong>content</strong> </a>
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
</span>
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
<span class="summary_desc"><div class='inline'>
|
193
|
-
<p>Returns the value of attribute content.</p>
|
194
|
-
</div></span>
|
195
|
-
|
196
|
-
</li>
|
197
|
-
|
198
|
-
|
199
|
-
<li class="public ">
|
200
|
-
<span class="summary_signature">
|
201
|
-
|
202
|
-
<a href="#html_options-instance_method" title="#html_options (instance method)">- (Object) <strong>html_options</strong> </a>
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
</span>
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
<span class="summary_desc"><div class='inline'>
|
220
|
-
<p>Returns the value of attribute html_options.</p>
|
221
|
-
</div></span>
|
222
|
-
|
223
|
-
</li>
|
224
|
-
|
225
|
-
|
226
|
-
<li class="public ">
|
227
|
-
<span class="summary_signature">
|
228
|
-
|
229
|
-
<a href="#options-instance_method" title="#options (instance method)">- (Object) <strong>options</strong> </a>
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
</span>
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
<span class="summary_desc"><div class='inline'>
|
247
|
-
<p>Returns the value of attribute options.</p>
|
248
|
-
</div></span>
|
249
|
-
|
250
|
-
</li>
|
251
|
-
|
252
|
-
|
253
|
-
</ul>
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
<h3 class="inherited">Attributes inherited from <span class='object_link'><a href="../Base.html" title="UiBibz::Ui::Base (class)">Base</a></span></h3>
|
260
|
-
<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>
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
<h2>
|
265
|
-
Instance Method Summary
|
266
|
-
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
267
|
-
</h2>
|
268
|
-
|
269
|
-
<ul class="summary">
|
270
|
-
|
271
|
-
<li class="public ">
|
272
|
-
<span class="summary_signature">
|
273
|
-
|
274
|
-
<a href="#add_classes-instance_method" title="#add_classes (instance method)">- (Object) <strong>add_classes</strong>(*classes) </a>
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
</span>
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
<span class="summary_desc"><div class='inline'>
|
289
|
-
<p>Add classes in html_options.</p>
|
290
|
-
</div></span>
|
291
|
-
|
292
|
-
</li>
|
293
|
-
|
294
|
-
|
295
|
-
<li class="public ">
|
296
|
-
<span class="summary_signature">
|
297
|
-
|
298
|
-
<a href="#badge_html-instance_method" title="#badge_html (instance method)">- (Object) <strong>badge_html</strong> </a>
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
</span>
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
<span class="summary_desc"><div class='inline'>
|
313
|
-
<p>Render badge html tag.</p>
|
314
|
-
</div></span>
|
315
|
-
|
316
|
-
</li>
|
317
|
-
|
318
|
-
|
319
|
-
<li class="public ">
|
320
|
-
<span class="summary_signature">
|
321
|
-
|
322
|
-
<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>
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
</span>
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
<span class="summary_desc"><div class='inline'>
|
337
|
-
<p>Add classes in html_options.</p>
|
338
|
-
</div></span>
|
339
|
-
|
340
|
-
</li>
|
341
|
-
|
342
|
-
|
343
|
-
<li class="public ">
|
344
|
-
<span class="summary_signature">
|
345
|
-
|
346
|
-
<a href="#glyph-instance_method" title="#glyph (instance method)">- (Object) <strong>glyph</strong> </a>
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
</span>
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
<span class="summary_desc"><div class='inline'>
|
361
|
-
<p>Render glyph html.</p>
|
362
|
-
</div></span>
|
363
|
-
|
364
|
-
</li>
|
365
|
-
|
366
|
-
|
367
|
-
<li class="public ">
|
368
|
-
<span class="summary_signature">
|
369
|
-
|
370
|
-
<a href="#glyph_and_content_html-instance_method" title="#glyph_and_content_html (instance method)">- (Object) <strong>glyph_and_content_html</strong> </a>
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
</span>
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
<span class="summary_desc"><div class='inline'>
|
385
|
-
<p>Render glyph and content html.</p>
|
386
|
-
</div></span>
|
387
|
-
|
388
|
-
</li>
|
389
|
-
|
390
|
-
|
391
|
-
<li class="public ">
|
392
|
-
<span class="summary_signature">
|
393
|
-
|
394
|
-
<a href="#glyph_with_space-instance_method" title="#glyph_with_space (instance method)">- (Object) <strong>glyph_with_space</strong> </a>
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
</span>
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
|
408
|
-
<span class="summary_desc"><div class='inline'>
|
409
|
-
<p>Render glyph with space html.</p>
|
410
|
-
</div></span>
|
411
|
-
|
412
|
-
</li>
|
413
|
-
|
414
|
-
|
415
|
-
<li class="public ">
|
416
|
-
<span class="summary_signature">
|
417
|
-
|
418
|
-
<a href="#initialize-instance_method" title="#initialize (instance method)">- (Component) <strong>initialize</strong>(content = nil, options = nil, html_options = nil, &block) </a>
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
</span>
|
423
|
-
|
424
|
-
|
425
|
-
<span class="note title constructor">constructor</span>
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
<span class="summary_desc"><div class='inline'>
|
435
|
-
<p>Use link_to system in rails * Content can be send by content variable or by
|
436
|
-
block if a block is sent, variable 'content' does not exit.</p>
|
437
|
-
</div></span>
|
438
|
-
|
439
|
-
</li>
|
440
|
-
|
441
|
-
|
442
|
-
<li class="public ">
|
443
|
-
<span class="summary_signature">
|
444
|
-
|
445
|
-
<a href="#render-instance_method" title="#render (instance method)">- (Object) <strong>render</strong> </a>
|
446
|
-
|
447
|
-
|
448
|
-
|
449
|
-
</span>
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
|
459
|
-
<span class="summary_desc"><div class='inline'>
|
460
|
-
<p>Render html tag.</p>
|
461
|
-
</div></span>
|
462
|
-
|
463
|
-
</li>
|
464
|
-
|
465
|
-
|
466
|
-
<li class="public ">
|
467
|
-
<span class="summary_signature">
|
468
|
-
|
469
|
-
<a href="#state-instance_method" title="#state (instance method)">- (Object) <strong>state</strong> </a>
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
</span>
|
474
|
-
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
|
480
|
-
|
481
|
-
|
482
|
-
|
483
|
-
<span class="summary_desc"><div class='inline'>
|
484
|
-
<p>Set :default state symbol.</p>
|
485
|
-
</div></span>
|
486
|
-
|
487
|
-
</li>
|
488
|
-
|
489
|
-
|
490
|
-
</ul>
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
|
500
|
-
|
501
|
-
|
502
|
-
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="../Base.html" title="UiBibz::Ui::Base (class)">Base</a></span></h3>
|
503
|
-
<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>
|
504
|
-
|
505
|
-
<div id="constructor_details" class="method_details_list">
|
506
|
-
<h2>Constructor Details</h2>
|
507
|
-
|
508
|
-
<div class="method_details first">
|
509
|
-
<h3 class="signature first" id="initialize-instance_method">
|
510
|
-
|
511
|
-
- (<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)
|
512
|
-
|
513
|
-
|
514
|
-
|
515
|
-
|
516
|
-
|
517
|
-
</h3><div class="docstring">
|
518
|
-
<div class="discussion">
|
519
|
-
|
520
|
-
<p>Use link_to system in rails</p>
|
521
|
-
<ul><li>
|
522
|
-
<p>Content can be send by content variable or by block if a block is sent,
|
523
|
-
variable 'content' does not exit.</p>
|
524
|
-
</li><li>
|
525
|
-
<p>Options of component is defined in hash options</p>
|
526
|
-
</li><li>
|
527
|
-
<p>Html options is defined in hash html_options</p>
|
528
|
-
</li></ul>
|
529
|
-
|
530
|
-
|
531
|
-
</div>
|
532
|
-
</div>
|
533
|
-
<div class="tags">
|
534
|
-
|
535
|
-
|
536
|
-
</div><table class="source_code">
|
537
|
-
<tr>
|
538
|
-
<td>
|
539
|
-
<pre class="lines">
|
540
|
-
|
541
|
-
|
542
|
-
48
|
543
|
-
49
|
544
|
-
50
|
545
|
-
51
|
546
|
-
52
|
547
|
-
53
|
548
|
-
54
|
549
|
-
55
|
550
|
-
56
|
551
|
-
57
|
552
|
-
58
|
553
|
-
59
|
554
|
-
60
|
555
|
-
61
|
556
|
-
62</pre>
|
557
|
-
</td>
|
558
|
-
<td>
|
559
|
-
<pre class="code"><span class="info file"># File 'lib/ui_bibz/ui/core/component.rb', line 48</span>
|
560
|
-
|
561
|
-
<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>
|
562
|
-
<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>
|
563
|
-
<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>
|
564
|
-
<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>
|
565
|
-
<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>
|
566
|
-
<span class='kw'>else</span>
|
567
|
-
<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>
|
568
|
-
<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>
|
569
|
-
<span class='kw'>else</span>
|
570
|
-
<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>
|
571
|
-
<span class='kw'>end</span>
|
572
|
-
<span class='kw'>end</span>
|
573
|
-
<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>
|
574
|
-
<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>
|
575
|
-
<span class='kw'>end</span></pre>
|
576
|
-
</td>
|
577
|
-
</tr>
|
578
|
-
</table>
|
579
|
-
</div>
|
580
|
-
|
581
|
-
</div>
|
582
|
-
|
583
|
-
<div id="instance_attr_details" class="attr_details">
|
584
|
-
<h2>Instance Attribute Details</h2>
|
585
|
-
|
586
|
-
|
587
|
-
<span id="content=-instance_method"></span>
|
588
|
-
<div class="method_details first">
|
589
|
-
<h3 class="signature first" id="content-instance_method">
|
590
|
-
|
591
|
-
- (<tt>Object</tt>) <strong>content</strong>
|
592
|
-
|
593
|
-
|
594
|
-
|
595
|
-
|
596
|
-
|
597
|
-
</h3><div class="docstring">
|
598
|
-
<div class="discussion">
|
599
|
-
|
600
|
-
<p>Returns the value of attribute content</p>
|
601
|
-
|
602
|
-
|
603
|
-
</div>
|
604
|
-
</div>
|
605
|
-
<div class="tags">
|
606
|
-
|
607
|
-
|
608
|
-
</div><table class="source_code">
|
609
|
-
<tr>
|
610
|
-
<td>
|
611
|
-
<pre class="lines">
|
612
|
-
|
613
|
-
|
614
|
-
41
|
615
|
-
42
|
616
|
-
43</pre>
|
617
|
-
</td>
|
618
|
-
<td>
|
619
|
-
<pre class="code"><span class="info file"># File 'lib/ui_bibz/ui/core/component.rb', line 41</span>
|
620
|
-
|
621
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_content'>content</span>
|
622
|
-
<span class='ivar'>@content</span>
|
623
|
-
<span class='kw'>end</span></pre>
|
624
|
-
</td>
|
625
|
-
</tr>
|
626
|
-
</table>
|
627
|
-
</div>
|
628
|
-
|
629
|
-
|
630
|
-
<span id="html_options=-instance_method"></span>
|
631
|
-
<div class="method_details ">
|
632
|
-
<h3 class="signature " id="html_options-instance_method">
|
633
|
-
|
634
|
-
- (<tt>Object</tt>) <strong>html_options</strong>
|
635
|
-
|
636
|
-
|
637
|
-
|
638
|
-
|
639
|
-
|
640
|
-
</h3><div class="docstring">
|
641
|
-
<div class="discussion">
|
642
|
-
|
643
|
-
<p>Returns the value of attribute html_options</p>
|
644
|
-
|
645
|
-
|
646
|
-
</div>
|
647
|
-
</div>
|
648
|
-
<div class="tags">
|
649
|
-
|
650
|
-
|
651
|
-
</div><table class="source_code">
|
652
|
-
<tr>
|
653
|
-
<td>
|
654
|
-
<pre class="lines">
|
655
|
-
|
656
|
-
|
657
|
-
41
|
658
|
-
42
|
659
|
-
43</pre>
|
660
|
-
</td>
|
661
|
-
<td>
|
662
|
-
<pre class="code"><span class="info file"># File 'lib/ui_bibz/ui/core/component.rb', line 41</span>
|
663
|
-
|
664
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_html_options'>html_options</span>
|
665
|
-
<span class='ivar'>@html_options</span>
|
666
|
-
<span class='kw'>end</span></pre>
|
667
|
-
</td>
|
668
|
-
</tr>
|
669
|
-
</table>
|
670
|
-
</div>
|
671
|
-
|
672
|
-
|
673
|
-
<span id="options=-instance_method"></span>
|
674
|
-
<div class="method_details ">
|
675
|
-
<h3 class="signature " id="options-instance_method">
|
676
|
-
|
677
|
-
- (<tt>Object</tt>) <strong>options</strong>
|
678
|
-
|
679
|
-
|
680
|
-
|
681
|
-
|
682
|
-
|
683
|
-
</h3><div class="docstring">
|
684
|
-
<div class="discussion">
|
685
|
-
|
686
|
-
<p>Returns the value of attribute options</p>
|
687
|
-
|
688
|
-
|
689
|
-
</div>
|
690
|
-
</div>
|
691
|
-
<div class="tags">
|
692
|
-
|
693
|
-
|
694
|
-
</div><table class="source_code">
|
695
|
-
<tr>
|
696
|
-
<td>
|
697
|
-
<pre class="lines">
|
698
|
-
|
699
|
-
|
700
|
-
41
|
701
|
-
42
|
702
|
-
43</pre>
|
703
|
-
</td>
|
704
|
-
<td>
|
705
|
-
<pre class="code"><span class="info file"># File 'lib/ui_bibz/ui/core/component.rb', line 41</span>
|
706
|
-
|
707
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_options'>options</span>
|
708
|
-
<span class='ivar'>@options</span>
|
709
|
-
<span class='kw'>end</span></pre>
|
710
|
-
</td>
|
711
|
-
</tr>
|
712
|
-
</table>
|
713
|
-
</div>
|
714
|
-
|
715
|
-
</div>
|
716
|
-
|
717
|
-
|
718
|
-
<div id="instance_method_details" class="method_details_list">
|
719
|
-
<h2>Instance Method Details</h2>
|
720
|
-
|
721
|
-
|
722
|
-
<div class="method_details first">
|
723
|
-
<h3 class="signature first" id="add_classes-instance_method">
|
724
|
-
|
725
|
-
- (<tt>Object</tt>) <strong>add_classes</strong>(*classes)
|
726
|
-
|
727
|
-
|
728
|
-
|
729
|
-
|
730
|
-
|
731
|
-
</h3><div class="docstring">
|
732
|
-
<div class="discussion">
|
733
|
-
|
734
|
-
<p>Add classes in html_options</p>
|
735
|
-
|
736
|
-
|
737
|
-
</div>
|
738
|
-
</div>
|
739
|
-
<div class="tags">
|
740
|
-
|
741
|
-
|
742
|
-
</div><table class="source_code">
|
743
|
-
<tr>
|
744
|
-
<td>
|
745
|
-
<pre class="lines">
|
746
|
-
|
747
|
-
|
748
|
-
113
|
749
|
-
114
|
750
|
-
115</pre>
|
751
|
-
</td>
|
752
|
-
<td>
|
753
|
-
<pre class="code"><span class="info file"># File 'lib/ui_bibz/ui/core/component.rb', line 113</span>
|
754
|
-
|
755
|
-
<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>
|
756
|
-
<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>
|
757
|
-
<span class='kw'>end</span></pre>
|
758
|
-
</td>
|
759
|
-
</tr>
|
760
|
-
</table>
|
761
|
-
</div>
|
762
|
-
|
763
|
-
<div class="method_details ">
|
764
|
-
<h3 class="signature " id="badge_html-instance_method">
|
765
|
-
|
766
|
-
- (<tt>Object</tt>) <strong>badge_html</strong>
|
767
|
-
|
768
|
-
|
769
|
-
|
770
|
-
|
771
|
-
|
772
|
-
</h3><div class="docstring">
|
773
|
-
<div class="discussion">
|
774
|
-
|
775
|
-
<p>Render badge html tag</p>
|
776
|
-
|
777
|
-
|
778
|
-
</div>
|
779
|
-
</div>
|
780
|
-
<div class="tags">
|
781
|
-
|
782
|
-
|
783
|
-
</div><table class="source_code">
|
784
|
-
<tr>
|
785
|
-
<td>
|
786
|
-
<pre class="lines">
|
787
|
-
|
788
|
-
|
789
|
-
86
|
790
|
-
87
|
791
|
-
88</pre>
|
792
|
-
</td>
|
793
|
-
<td>
|
794
|
-
<pre class="code"><span class="info file"># File 'lib/ui_bibz/ui/core/component.rb', line 86</span>
|
795
|
-
|
796
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_badge_html'>badge_html</span>
|
797
|
-
<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>
|
798
|
-
<span class='kw'>end</span></pre>
|
799
|
-
</td>
|
800
|
-
</tr>
|
801
|
-
</table>
|
802
|
-
</div>
|
803
|
-
|
804
|
-
<div class="method_details ">
|
805
|
-
<h3 class="signature " id="class_and_html_options-instance_method">
|
806
|
-
|
807
|
-
- (<tt>Object</tt>) <strong>class_and_html_options</strong>(classes = nil)
|
808
|
-
|
809
|
-
|
810
|
-
|
811
|
-
|
812
|
-
|
813
|
-
</h3><div class="docstring">
|
814
|
-
<div class="discussion">
|
815
|
-
|
816
|
-
<p>Add classes in html_options</p>
|
817
|
-
|
818
|
-
|
819
|
-
</div>
|
820
|
-
</div>
|
821
|
-
<div class="tags">
|
822
|
-
|
823
|
-
|
824
|
-
</div><table class="source_code">
|
825
|
-
<tr>
|
826
|
-
<td>
|
827
|
-
<pre class="lines">
|
828
|
-
|
829
|
-
|
830
|
-
98
|
831
|
-
99
|
832
|
-
100
|
833
|
-
101
|
834
|
-
102
|
835
|
-
103
|
836
|
-
104
|
837
|
-
105
|
838
|
-
106
|
839
|
-
107
|
840
|
-
108
|
841
|
-
109
|
842
|
-
110</pre>
|
843
|
-
</td>
|
844
|
-
<td>
|
845
|
-
<pre class="code"><span class="info file"># File 'lib/ui_bibz/ui/core/component.rb', line 98</span>
|
846
|
-
|
847
|
-
<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>
|
848
|
-
<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>
|
849
|
-
<span class='id identifier rubyid_cls'>cls</span> <span class='op'>=</span> <span class='lbracket'>[</span>
|
850
|
-
<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>
|
851
|
-
<span class='id identifier rubyid_status'>status</span><span class='comma'>,</span>
|
852
|
-
<span class='id identifier rubyid_state'>state</span><span class='comma'>,</span>
|
853
|
-
<span class='id identifier rubyid_options_class'>options_class</span>
|
854
|
-
<span class='rbracket'>]</span>
|
855
|
-
<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>
|
856
|
-
<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>
|
857
|
-
<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>
|
858
|
-
<span class='id identifier rubyid_html_options'>html_options</span>
|
859
|
-
<span class='kw'>end</span></pre>
|
860
|
-
</td>
|
861
|
-
</tr>
|
862
|
-
</table>
|
863
|
-
</div>
|
864
|
-
|
865
|
-
<div class="method_details ">
|
866
|
-
<h3 class="signature " id="glyph-instance_method">
|
867
|
-
|
868
|
-
- (<tt>Object</tt>) <strong>glyph</strong>
|
869
|
-
|
870
|
-
|
871
|
-
|
872
|
-
|
873
|
-
|
874
|
-
</h3><div class="docstring">
|
875
|
-
<div class="discussion">
|
876
|
-
|
877
|
-
<p>Render glyph html</p>
|
878
|
-
|
879
|
-
|
880
|
-
</div>
|
881
|
-
</div>
|
882
|
-
<div class="tags">
|
883
|
-
|
884
|
-
|
885
|
-
</div><table class="source_code">
|
886
|
-
<tr>
|
887
|
-
<td>
|
888
|
-
<pre class="lines">
|
889
|
-
|
890
|
-
|
891
|
-
80
|
892
|
-
81
|
893
|
-
82
|
894
|
-
83</pre>
|
895
|
-
</td>
|
896
|
-
<td>
|
897
|
-
<pre class="code"><span class="info file"># File 'lib/ui_bibz/ui/core/component.rb', line 80</span>
|
898
|
-
|
899
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_glyph'>glyph</span>
|
900
|
-
<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>
|
901
|
-
<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>
|
902
|
-
<span class='kw'>end</span></pre>
|
903
|
-
</td>
|
904
|
-
</tr>
|
905
|
-
</table>
|
906
|
-
</div>
|
907
|
-
|
908
|
-
<div class="method_details ">
|
909
|
-
<h3 class="signature " id="glyph_and_content_html-instance_method">
|
910
|
-
|
911
|
-
- (<tt>Object</tt>) <strong>glyph_and_content_html</strong>
|
912
|
-
|
913
|
-
|
914
|
-
|
915
|
-
|
916
|
-
|
917
|
-
</h3><div class="docstring">
|
918
|
-
<div class="discussion">
|
919
|
-
|
920
|
-
<p>Render glyph and content html</p>
|
921
|
-
|
922
|
-
|
923
|
-
</div>
|
924
|
-
</div>
|
925
|
-
<div class="tags">
|
926
|
-
|
927
|
-
|
928
|
-
</div><table class="source_code">
|
929
|
-
<tr>
|
930
|
-
<td>
|
931
|
-
<pre class="lines">
|
932
|
-
|
933
|
-
|
934
|
-
70
|
935
|
-
71
|
936
|
-
72</pre>
|
937
|
-
</td>
|
938
|
-
<td>
|
939
|
-
<pre class="code"><span class="info file"># File 'lib/ui_bibz/ui/core/component.rb', line 70</span>
|
940
|
-
|
941
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_glyph_and_content_html'>glyph_and_content_html</span>
|
942
|
-
<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>
|
943
|
-
<span class='kw'>end</span></pre>
|
944
|
-
</td>
|
945
|
-
</tr>
|
946
|
-
</table>
|
947
|
-
</div>
|
948
|
-
|
949
|
-
<div class="method_details ">
|
950
|
-
<h3 class="signature " id="glyph_with_space-instance_method">
|
951
|
-
|
952
|
-
- (<tt>Object</tt>) <strong>glyph_with_space</strong>
|
953
|
-
|
954
|
-
|
955
|
-
|
956
|
-
|
957
|
-
|
958
|
-
</h3><div class="docstring">
|
959
|
-
<div class="discussion">
|
960
|
-
|
961
|
-
<p>Render glyph with space html</p>
|
962
|
-
|
963
|
-
|
964
|
-
</div>
|
965
|
-
</div>
|
966
|
-
<div class="tags">
|
967
|
-
|
968
|
-
|
969
|
-
</div><table class="source_code">
|
970
|
-
<tr>
|
971
|
-
<td>
|
972
|
-
<pre class="lines">
|
973
|
-
|
974
|
-
|
975
|
-
75
|
976
|
-
76
|
977
|
-
77</pre>
|
978
|
-
</td>
|
979
|
-
<td>
|
980
|
-
<pre class="code"><span class="info file"># File 'lib/ui_bibz/ui/core/component.rb', line 75</span>
|
981
|
-
|
982
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_glyph_with_space'>glyph_with_space</span>
|
983
|
-
<span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span> <span class='id identifier rubyid_glyph'>glyph</span> <span class='embexpr_end'>}</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>
|
984
|
-
<span class='kw'>end</span></pre>
|
985
|
-
</td>
|
986
|
-
</tr>
|
987
|
-
</table>
|
988
|
-
</div>
|
989
|
-
|
990
|
-
<div class="method_details ">
|
991
|
-
<h3 class="signature " id="render-instance_method">
|
992
|
-
|
993
|
-
- (<tt>Object</tt>) <strong>render</strong>
|
994
|
-
|
995
|
-
|
996
|
-
|
997
|
-
|
998
|
-
|
999
|
-
</h3><div class="docstring">
|
1000
|
-
<div class="discussion">
|
1001
|
-
|
1002
|
-
<p>Render html tag</p>
|
1003
|
-
|
1004
|
-
|
1005
|
-
</div>
|
1006
|
-
</div>
|
1007
|
-
<div class="tags">
|
1008
|
-
|
1009
|
-
|
1010
|
-
</div><table class="source_code">
|
1011
|
-
<tr>
|
1012
|
-
<td>
|
1013
|
-
<pre class="lines">
|
1014
|
-
|
1015
|
-
|
1016
|
-
65
|
1017
|
-
66
|
1018
|
-
67</pre>
|
1019
|
-
</td>
|
1020
|
-
<td>
|
1021
|
-
<pre class="code"><span class="info file"># File 'lib/ui_bibz/ui/core/component.rb', line 65</span>
|
1022
|
-
|
1023
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_render'>render</span>
|
1024
|
-
<span class='id identifier rubyid_glyph_and_content_html'>glyph_and_content_html</span>
|
1025
|
-
<span class='kw'>end</span></pre>
|
1026
|
-
</td>
|
1027
|
-
</tr>
|
1028
|
-
</table>
|
1029
|
-
</div>
|
1030
|
-
|
1031
|
-
<div class="method_details ">
|
1032
|
-
<h3 class="signature " id="state-instance_method">
|
1033
|
-
|
1034
|
-
- (<tt>Object</tt>) <strong>state</strong>
|
1035
|
-
|
1036
|
-
|
1037
|
-
|
1038
|
-
|
1039
|
-
|
1040
|
-
</h3><div class="docstring">
|
1041
|
-
<div class="discussion">
|
1042
|
-
|
1043
|
-
<p>Set :default state symbol</p>
|
1044
|
-
|
1045
|
-
|
1046
|
-
</div>
|
1047
|
-
</div>
|
1048
|
-
<div class="tags">
|
1049
|
-
|
1050
|
-
|
1051
|
-
</div><table class="source_code">
|
1052
|
-
<tr>
|
1053
|
-
<td>
|
1054
|
-
<pre class="lines">
|
1055
|
-
|
1056
|
-
|
1057
|
-
91
|
1058
|
-
92
|
1059
|
-
93
|
1060
|
-
94
|
1061
|
-
95</pre>
|
1062
|
-
</td>
|
1063
|
-
<td>
|
1064
|
-
<pre class="code"><span class="info file"># File 'lib/ui_bibz/ui/core/component.rb', line 91</span>
|
1065
|
-
|
1066
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_state'>state</span>
|
1067
|
-
<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>
|
1068
|
-
<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>
|
1069
|
-
<span class='id identifier rubyid_states'>states</span><span class='lbracket'>[</span><span class='symbol'>:sym</span><span class='rbracket'>]</span>
|
1070
|
-
<span class='kw'>end</span></pre>
|
1071
|
-
</td>
|
1072
|
-
</tr>
|
1073
|
-
</table>
|
1074
|
-
</div>
|
1075
|
-
|
1076
|
-
</div>
|
1077
|
-
|
1078
|
-
</div>
|
1079
|
-
|
1080
|
-
<div id="footer">
|
1081
|
-
Generated on Mon Oct 19 15:25:15 2015 by
|
1082
|
-
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1083
|
-
0.8.7.6 (ruby-2.2.3).
|
1084
|
-
</div>
|
1085
|
-
|
1086
|
-
</body>
|
1087
|
-
</html>
|