ui_bibz 2.0.0.alpha10 → 2.0.0.alpha11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +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
@@ -1,338 +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::Ux::Columns
|
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/Ux/Columns.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="../Ux.html" title="UiBibz::Ui::Ux (module)">Ux</a></span></span>
|
36
|
-
»
|
37
|
-
<span class="title">Columns</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::Ux::Columns
|
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">Object</span>
|
77
|
-
|
78
|
-
<ul class="fullTree">
|
79
|
-
<li>Object</li>
|
80
|
-
|
81
|
-
<li class="next">UiBibz::Ui::Ux::Columns</li>
|
82
|
-
|
83
|
-
</ul>
|
84
|
-
<a href="#" class="inheritanceTree">show all</a>
|
85
|
-
|
86
|
-
</dd>
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
<dt class="r2 last">Defined in:</dt>
|
97
|
-
<dd class="r2 last">lib/ui_bibz/ui/ux/table/components/columns.rb</dd>
|
98
|
-
|
99
|
-
</dl>
|
100
|
-
<div class="clear"></div>
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
<h2>
|
111
|
-
Instance Method Summary
|
112
|
-
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
113
|
-
</h2>
|
114
|
-
|
115
|
-
<ul class="summary">
|
116
|
-
|
117
|
-
<li class="public ">
|
118
|
-
<span class="summary_signature">
|
119
|
-
|
120
|
-
<a href="#column-instance_method" title="#column (instance method)">- (Object) <strong>column</strong>(data_index = nil, options = nil, html_options = nil, &block) </a>
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
</span>
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
<span class="summary_desc"><div class='inline'>
|
135
|
-
<p>Add column in table.</p>
|
136
|
-
</div></span>
|
137
|
-
|
138
|
-
</li>
|
139
|
-
|
140
|
-
|
141
|
-
<li class="public ">
|
142
|
-
<span class="summary_signature">
|
143
|
-
|
144
|
-
<a href="#initialize-instance_method" title="#initialize (instance method)">- (Columns) <strong>initialize</strong>(columns = nil) </a>
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
</span>
|
149
|
-
|
150
|
-
|
151
|
-
<span class="note title constructor">constructor</span>
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
<span class="summary_desc"><div class='inline'>
|
161
|
-
<p>A new instance of Columns.</p>
|
162
|
-
</div></span>
|
163
|
-
|
164
|
-
</li>
|
165
|
-
|
166
|
-
|
167
|
-
<li class="public ">
|
168
|
-
<span class="summary_signature">
|
169
|
-
|
170
|
-
<a href="#list-instance_method" title="#list (instance method)">- (Object) <strong>list</strong> </a>
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
</span>
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
<span class="summary_desc"><div class='inline'>
|
185
|
-
<p>Get all columns.</p>
|
186
|
-
</div></span>
|
187
|
-
|
188
|
-
</li>
|
189
|
-
|
190
|
-
|
191
|
-
</ul>
|
192
|
-
|
193
|
-
|
194
|
-
<div id="constructor_details" class="method_details_list">
|
195
|
-
<h2>Constructor Details</h2>
|
196
|
-
|
197
|
-
<div class="method_details first">
|
198
|
-
<h3 class="signature first" id="initialize-instance_method">
|
199
|
-
|
200
|
-
- (<tt><span class='object_link'><a href="" title="UiBibz::Ui::Ux::Columns (class)">Columns</a></span></tt>) <strong>initialize</strong>(columns = nil)
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
</h3><div class="docstring">
|
207
|
-
<div class="discussion">
|
208
|
-
|
209
|
-
<p>Returns a new instance of Columns</p>
|
210
|
-
|
211
|
-
|
212
|
-
</div>
|
213
|
-
</div>
|
214
|
-
<div class="tags">
|
215
|
-
|
216
|
-
|
217
|
-
</div><table class="source_code">
|
218
|
-
<tr>
|
219
|
-
<td>
|
220
|
-
<pre class="lines">
|
221
|
-
|
222
|
-
|
223
|
-
4
|
224
|
-
5
|
225
|
-
6</pre>
|
226
|
-
</td>
|
227
|
-
<td>
|
228
|
-
<pre class="code"><span class="info file"># File 'lib/ui_bibz/ui/ux/table/components/columns.rb', line 4</span>
|
229
|
-
|
230
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span> <span class='id identifier rubyid_columns'>columns</span> <span class='op'>=</span> <span class='kw'>nil</span>
|
231
|
-
<span class='ivar'>@columns</span> <span class='op'>=</span> <span class='id identifier rubyid_columns'>columns</span> <span class='op'>||</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
|
232
|
-
<span class='kw'>end</span></pre>
|
233
|
-
</td>
|
234
|
-
</tr>
|
235
|
-
</table>
|
236
|
-
</div>
|
237
|
-
|
238
|
-
</div>
|
239
|
-
|
240
|
-
|
241
|
-
<div id="instance_method_details" class="method_details_list">
|
242
|
-
<h2>Instance Method Details</h2>
|
243
|
-
|
244
|
-
|
245
|
-
<div class="method_details first">
|
246
|
-
<h3 class="signature first" id="column-instance_method">
|
247
|
-
|
248
|
-
- (<tt>Object</tt>) <strong>column</strong>(data_index = nil, options = nil, html_options = nil, &block)
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
</h3><div class="docstring">
|
255
|
-
<div class="discussion">
|
256
|
-
|
257
|
-
<p>Add column in table</p>
|
258
|
-
|
259
|
-
|
260
|
-
</div>
|
261
|
-
</div>
|
262
|
-
<div class="tags">
|
263
|
-
|
264
|
-
|
265
|
-
</div><table class="source_code">
|
266
|
-
<tr>
|
267
|
-
<td>
|
268
|
-
<pre class="lines">
|
269
|
-
|
270
|
-
|
271
|
-
9
|
272
|
-
10
|
273
|
-
11</pre>
|
274
|
-
</td>
|
275
|
-
<td>
|
276
|
-
<pre class="code"><span class="info file"># File 'lib/ui_bibz/ui/ux/table/components/columns.rb', line 9</span>
|
277
|
-
|
278
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_column'>column</span> <span class='id identifier rubyid_data_index'>data_index</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>
|
279
|
-
<span class='ivar'>@columns</span> <span class='op'><<</span> <span class='const'>Column</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_data_index'>data_index</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='comma'>,</span> <span class='id identifier rubyid_html_options'>html_options</span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
280
|
-
<span class='kw'>end</span></pre>
|
281
|
-
</td>
|
282
|
-
</tr>
|
283
|
-
</table>
|
284
|
-
</div>
|
285
|
-
|
286
|
-
<div class="method_details ">
|
287
|
-
<h3 class="signature " id="list-instance_method">
|
288
|
-
|
289
|
-
- (<tt>Object</tt>) <strong>list</strong>
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
</h3><div class="docstring">
|
296
|
-
<div class="discussion">
|
297
|
-
|
298
|
-
<p>Get all columns</p>
|
299
|
-
|
300
|
-
|
301
|
-
</div>
|
302
|
-
</div>
|
303
|
-
<div class="tags">
|
304
|
-
|
305
|
-
|
306
|
-
</div><table class="source_code">
|
307
|
-
<tr>
|
308
|
-
<td>
|
309
|
-
<pre class="lines">
|
310
|
-
|
311
|
-
|
312
|
-
14
|
313
|
-
15
|
314
|
-
16</pre>
|
315
|
-
</td>
|
316
|
-
<td>
|
317
|
-
<pre class="code"><span class="info file"># File 'lib/ui_bibz/ui/ux/table/components/columns.rb', line 14</span>
|
318
|
-
|
319
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_list'>list</span>
|
320
|
-
<span class='ivar'>@columns</span>
|
321
|
-
<span class='kw'>end</span></pre>
|
322
|
-
</td>
|
323
|
-
</tr>
|
324
|
-
</table>
|
325
|
-
</div>
|
326
|
-
|
327
|
-
</div>
|
328
|
-
|
329
|
-
</div>
|
330
|
-
|
331
|
-
<div id="footer">
|
332
|
-
Generated on Mon Oct 19 15:25:16 2015 by
|
333
|
-
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
334
|
-
0.8.7.6 (ruby-2.2.3).
|
335
|
-
</div>
|
336
|
-
|
337
|
-
</body>
|
338
|
-
</html>
|
data/doc/UiBibz/Ui/Ux/Grid.html
DELETED
@@ -1,485 +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::Ux::Grid
|
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/Ux/Grid.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 (G)</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="../Ux.html" title="UiBibz::Ui::Ux (module)">Ux</a></span></span>
|
36
|
-
»
|
37
|
-
<span class="title">Grid</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::Ux::Grid
|
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="../Core/Component.html" title="UiBibz::Ui::Core::Component (class)">Core::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="../Core/Component.html" title="UiBibz::Ui::Core::Component (class)">Core::Component</a></span></li>
|
84
|
-
|
85
|
-
<li class="next">UiBibz::Ui::Ux::Grid</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/ux/grid.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 Grid</p>
|
110
|
-
|
111
|
-
<p>This element is an extend of UiBibz::Ui::Ux::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
|
-
|
127
|
-
<h4 id="label-Signatures">Signatures</h4>
|
128
|
-
|
129
|
-
<pre class="code ruby"><code class="ruby">UiBibz::Ui::Ux::Grid.new().tap do |g|
|
130
|
-
...
|
131
|
-
g.view content = nil, options = nil, html_options = nil, &block
|
132
|
-
...
|
133
|
-
end</code></pre>
|
134
|
-
|
135
|
-
<h4 id="label-Exemples">Exemples</h4>
|
136
|
-
|
137
|
-
<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'>Ux</span><span class='op'>::</span><span class='const'>Grid</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_tap'>tap</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_g'>g</span><span class='op'>|</span>
|
138
|
-
<span class='id identifier rubyid_g'>g</span><span class='period'>.</span><span class='id identifier rubyid_view'>view</span> <span class='label'>num:</span> <span class='int'>5</span><span class='comma'>,</span> <span class='label'>position:</span> <span class='symbol'>:left</span> <span class='kw'>do</span>
|
139
|
-
<span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>left</span><span class='tstring_end'>'</span></span>
|
140
|
-
<span class='kw'>end</span>
|
141
|
-
<span class='id identifier rubyid_g'>g</span><span class='period'>.</span><span class='id identifier rubyid_view'>view</span> <span class='label'>position:</span> <span class='symbol'>:right</span> <span class='kw'>do</span>
|
142
|
-
<span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>right</span><span class='tstring_end'>'</span></span>
|
143
|
-
<span class='kw'>end</span>
|
144
|
-
<span class='id identifier rubyid_g'>g</span><span class='period'>.</span><span class='id identifier rubyid_view'>view</span><span class='lparen'>(</span><span class='lbrace'>{</span> <span class='label'>position:</span> <span class='symbol'>:top</span><span class='rbrace'>}</span><span class='comma'>,</span> <span class='lbrace'>{</span> <span class='label'>class:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>success</span><span class='tstring_end'>'</span></span><span class='rbrace'>}</span><span class='rparen'>)</span> <span class='kw'>do</span>
|
145
|
-
<span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>top</span><span class='tstring_end'>'</span></span>
|
146
|
-
<span class='kw'>end</span>
|
147
|
-
<span class='id identifier rubyid_g'>g</span><span class='period'>.</span><span class='id identifier rubyid_view'>view</span> <span class='label'>position:</span> <span class='symbol'>:center</span> <span class='kw'>do</span>
|
148
|
-
<span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>center</span><span class='tstring_end'>'</span></span>
|
149
|
-
<span class='kw'>end</span>
|
150
|
-
<span class='id identifier rubyid_g'>g</span><span class='period'>.</span><span class='id identifier rubyid_view'>view</span> <span class='label'>position:</span> <span class='symbol'>:bottom</span> <span class='kw'>do</span>
|
151
|
-
<span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>bottom</span><span class='tstring_end'>'</span></span>
|
152
|
-
<span class='kw'>end</span>
|
153
|
-
<span class='kw'>end</span><span class='period'>.</span><span class='id identifier rubyid_render'>render</span>
|
154
|
-
</code></pre>
|
155
|
-
|
156
|
-
<h4 id="label-Helper">Helper</h4>
|
157
|
-
|
158
|
-
<pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_grid'>grid</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='lbrace'>{</span> <span class='label'>tap:</span> <span class='kw'>true</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> <span class='op'>|</span><span class='id identifier rubyid_g'>g</span><span class='op'>|</span>
|
159
|
-
<span class='id identifier rubyid_g'>g</span><span class='period'>.</span><span class='id identifier rubyid_view'>view</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>
|
160
|
-
<span class='id identifier rubyid_g'>g</span><span class='period'>.</span><span class='id identifier rubyid_view'>view</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>
|
161
|
-
<span class='id identifier rubyid_content'>content</span>
|
162
|
-
<span class='kw'>end</span>
|
163
|
-
<span class='kw'>end</span>
|
164
|
-
</code></pre>
|
165
|
-
|
166
|
-
|
167
|
-
</div>
|
168
|
-
</div>
|
169
|
-
<div class="tags">
|
170
|
-
|
171
|
-
|
172
|
-
</div>
|
173
|
-
<h2>Constant Summary</h2>
|
174
|
-
|
175
|
-
<dl class="constants">
|
176
|
-
|
177
|
-
<dt id="COL_NUM-constant" class="">COL_NUM =
|
178
|
-
|
179
|
-
</dt>
|
180
|
-
<dd><pre class="code"><span class='int'>12</span></pre></dd>
|
181
|
-
|
182
|
-
</dl>
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
<h2>Instance Attribute Summary</h2>
|
191
|
-
|
192
|
-
<h3 class="inherited">Attributes inherited from <span class='object_link'><a href="../Core/Component.html" title="UiBibz::Ui::Core::Component (class)">Core::Component</a></span></h3>
|
193
|
-
<p class="inherited"><span class='object_link'><a href="../Core/Component.html#content-instance_method" title="UiBibz::Ui::Core::Component#content (method)">#content</a></span>, <span class='object_link'><a href="../Core/Component.html#html_options-instance_method" title="UiBibz::Ui::Core::Component#html_options (method)">#html_options</a></span>, <span class='object_link'><a href="../Core/Component.html#options-instance_method" title="UiBibz::Ui::Core::Component#options (method)">#options</a></span></p>
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
<h3 class="inherited">Attributes inherited from <span class='object_link'><a href="../Base.html" title="UiBibz::Ui::Base (class)">Base</a></span></h3>
|
198
|
-
<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>
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
<h2>
|
203
|
-
Instance Method Summary
|
204
|
-
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
205
|
-
</h2>
|
206
|
-
|
207
|
-
<ul class="summary">
|
208
|
-
|
209
|
-
<li class="public ">
|
210
|
-
<span class="summary_signature">
|
211
|
-
|
212
|
-
<a href="#initialize-instance_method" title="#initialize (instance method)">- (Grid) <strong>initialize</strong>(content = nil, options = nil, html_options = nil, &block) </a>
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
</span>
|
217
|
-
|
218
|
-
|
219
|
-
<span class="note title constructor">constructor</span>
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
<span class="summary_desc"><div class='inline'>
|
229
|
-
<p>A new instance of Grid.</p>
|
230
|
-
</div></span>
|
231
|
-
|
232
|
-
</li>
|
233
|
-
|
234
|
-
|
235
|
-
<li class="public ">
|
236
|
-
<span class="summary_signature">
|
237
|
-
|
238
|
-
<a href="#render-instance_method" title="#render (instance method)">- (Object) <strong>render</strong> </a>
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
</span>
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
<span class="summary_desc"><div class='inline'>
|
253
|
-
<p>Render html tag.</p>
|
254
|
-
</div></span>
|
255
|
-
|
256
|
-
</li>
|
257
|
-
|
258
|
-
|
259
|
-
<li class="public ">
|
260
|
-
<span class="summary_signature">
|
261
|
-
|
262
|
-
<a href="#view-instance_method" title="#view (instance method)">- (Object) <strong>view</strong>(content = nil, options = nil, html_options = nil, &block) </a>
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
</span>
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
<span class="summary_desc"><div class='inline'>
|
277
|
-
<p>Add grid view items.</p>
|
278
|
-
</div></span>
|
279
|
-
|
280
|
-
</li>
|
281
|
-
|
282
|
-
|
283
|
-
</ul>
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="../Core/Component.html" title="UiBibz::Ui::Core::Component (class)">Core::Component</a></span></h3>
|
296
|
-
<p class="inherited"><span class='object_link'><a href="../Core/Component.html#add_classes-instance_method" title="UiBibz::Ui::Core::Component#add_classes (method)">#add_classes</a></span>, <span class='object_link'><a href="../Core/Component.html#badge_html-instance_method" title="UiBibz::Ui::Core::Component#badge_html (method)">#badge_html</a></span>, <span class='object_link'><a href="../Core/Component.html#class_and_html_options-instance_method" title="UiBibz::Ui::Core::Component#class_and_html_options (method)">#class_and_html_options</a></span>, <span class='object_link'><a href="../Core/Component.html#glyph-instance_method" title="UiBibz::Ui::Core::Component#glyph (method)">#glyph</a></span>, <span class='object_link'><a href="../Core/Component.html#glyph_and_content_html-instance_method" title="UiBibz::Ui::Core::Component#glyph_and_content_html (method)">#glyph_and_content_html</a></span>, <span class='object_link'><a href="../Core/Component.html#glyph_with_space-instance_method" title="UiBibz::Ui::Core::Component#glyph_with_space (method)">#glyph_with_space</a></span>, <span class='object_link'><a href="../Core/Component.html#state-instance_method" title="UiBibz::Ui::Core::Component#state (method)">#state</a></span></p>
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="../Base.html" title="UiBibz::Ui::Base (class)">Base</a></span></h3>
|
307
|
-
<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>
|
308
|
-
|
309
|
-
<div id="constructor_details" class="method_details_list">
|
310
|
-
<h2>Constructor Details</h2>
|
311
|
-
|
312
|
-
<div class="method_details first">
|
313
|
-
<h3 class="signature first" id="initialize-instance_method">
|
314
|
-
|
315
|
-
- (<tt><span class='object_link'><a href="" title="UiBibz::Ui::Ux::Grid (class)">Grid</a></span></tt>) <strong>initialize</strong>(content = nil, options = nil, html_options = nil, &block)
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
</h3><div class="docstring">
|
322
|
-
<div class="discussion">
|
323
|
-
|
324
|
-
<p>Returns a new instance of Grid</p>
|
325
|
-
|
326
|
-
|
327
|
-
</div>
|
328
|
-
</div>
|
329
|
-
<div class="tags">
|
330
|
-
|
331
|
-
|
332
|
-
</div><table class="source_code">
|
333
|
-
<tr>
|
334
|
-
<td>
|
335
|
-
<pre class="lines">
|
336
|
-
|
337
|
-
|
338
|
-
59
|
339
|
-
60
|
340
|
-
61
|
341
|
-
62</pre>
|
342
|
-
</td>
|
343
|
-
<td>
|
344
|
-
<pre class="code"><span class="info file"># File 'lib/ui_bibz/ui/ux/grid.rb', line 59</span>
|
345
|
-
|
346
|
-
<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>
|
347
|
-
<span class='kw'>super</span>
|
348
|
-
<span class='ivar'>@views</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
|
349
|
-
<span class='kw'>end</span></pre>
|
350
|
-
</td>
|
351
|
-
</tr>
|
352
|
-
</table>
|
353
|
-
</div>
|
354
|
-
|
355
|
-
</div>
|
356
|
-
|
357
|
-
|
358
|
-
<div id="instance_method_details" class="method_details_list">
|
359
|
-
<h2>Instance Method Details</h2>
|
360
|
-
|
361
|
-
|
362
|
-
<div class="method_details first">
|
363
|
-
<h3 class="signature first" id="render-instance_method">
|
364
|
-
|
365
|
-
- (<tt>Object</tt>) <strong>render</strong>
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
</h3><div class="docstring">
|
372
|
-
<div class="discussion">
|
373
|
-
|
374
|
-
<p>Render html tag</p>
|
375
|
-
|
376
|
-
|
377
|
-
</div>
|
378
|
-
</div>
|
379
|
-
<div class="tags">
|
380
|
-
|
381
|
-
|
382
|
-
</div><table class="source_code">
|
383
|
-
<tr>
|
384
|
-
<td>
|
385
|
-
<pre class="lines">
|
386
|
-
|
387
|
-
|
388
|
-
73
|
389
|
-
74
|
390
|
-
75
|
391
|
-
76
|
392
|
-
77
|
393
|
-
78
|
394
|
-
79
|
395
|
-
80
|
396
|
-
81
|
397
|
-
82
|
398
|
-
83
|
399
|
-
84
|
400
|
-
85
|
401
|
-
86
|
402
|
-
87</pre>
|
403
|
-
</td>
|
404
|
-
<td>
|
405
|
-
<pre class="code"><span class="info file"># File 'lib/ui_bibz/ui/ux/grid.rb', line 73</span>
|
406
|
-
|
407
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_render'>render</span>
|
408
|
-
<span class='id identifier rubyid_define_col_nums'>define_col_nums</span>
|
409
|
-
<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'>Row</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='label'>class:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>grid</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span> <span class='kw'>do</span>
|
410
|
-
<span class='comment'># top
|
411
|
-
</span> <span class='id identifier rubyid_concat'>concat</span> <span class='id identifier rubyid_top_view'>top_view</span> <span class='kw'>unless</span> <span class='ivar'>@views</span><span class='lbracket'>[</span><span class='symbol'>:top</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
412
|
-
<span class='comment'># left
|
413
|
-
</span> <span class='id identifier rubyid_concat'>concat</span> <span class='id identifier rubyid_left_view'>left_view</span> <span class='kw'>unless</span> <span class='ivar'>@views</span><span class='lbracket'>[</span><span class='symbol'>:left</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
414
|
-
<span class='comment'># center
|
415
|
-
</span> <span class='id identifier rubyid_concat'>concat</span> <span class='id identifier rubyid_center_view'>center_view</span> <span class='kw'>unless</span> <span class='ivar'>@views</span><span class='lbracket'>[</span><span class='symbol'>:center</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
416
|
-
<span class='comment'># right
|
417
|
-
</span> <span class='id identifier rubyid_concat'>concat</span> <span class='id identifier rubyid_right_view'>right_view</span> <span class='kw'>unless</span> <span class='ivar'>@views</span><span class='lbracket'>[</span><span class='symbol'>:right</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
418
|
-
<span class='comment'># bottom
|
419
|
-
</span> <span class='id identifier rubyid_concat'>concat</span> <span class='id identifier rubyid_bottom_view'>bottom_view</span> <span class='kw'>unless</span> <span class='ivar'>@views</span><span class='lbracket'>[</span><span class='symbol'>:bottom</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
420
|
-
<span class='kw'>end</span><span class='period'>.</span><span class='id identifier rubyid_render'>render</span>
|
421
|
-
<span class='kw'>end</span></pre>
|
422
|
-
</td>
|
423
|
-
</tr>
|
424
|
-
</table>
|
425
|
-
</div>
|
426
|
-
|
427
|
-
<div class="method_details ">
|
428
|
-
<h3 class="signature " id="view-instance_method">
|
429
|
-
|
430
|
-
- (<tt>Object</tt>) <strong>view</strong>(content = nil, options = nil, html_options = nil, &block)
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
</h3><div class="docstring">
|
437
|
-
<div class="discussion">
|
438
|
-
|
439
|
-
<p>Add grid view items</p>
|
440
|
-
|
441
|
-
|
442
|
-
</div>
|
443
|
-
</div>
|
444
|
-
<div class="tags">
|
445
|
-
|
446
|
-
|
447
|
-
</div><table class="source_code">
|
448
|
-
<tr>
|
449
|
-
<td>
|
450
|
-
<pre class="lines">
|
451
|
-
|
452
|
-
|
453
|
-
65
|
454
|
-
66
|
455
|
-
67
|
456
|
-
68
|
457
|
-
69
|
458
|
-
70</pre>
|
459
|
-
</td>
|
460
|
-
<td>
|
461
|
-
<pre class="code"><span class="info file"># File 'lib/ui_bibz/ui/ux/grid.rb', line 65</span>
|
462
|
-
|
463
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_view'>view</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>
|
464
|
-
<span class='id identifier rubyid_o'>o</span> <span class='op'>=</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> <span class='op'>?</span> <span class='id identifier rubyid_content'>content</span> <span class='op'>:</span> <span class='id identifier rubyid_options'>options</span>
|
465
|
-
<span class='id identifier rubyid_c'>c</span> <span class='op'>=</span> <span class='const'>UiBibz</span><span class='op'>::</span><span class='const'>Ui</span><span class='op'>::</span><span class='const'>Core</span><span class='op'>::</span><span class='const'>Component</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span> <span class='id identifier rubyid_content'>content</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='comma'>,</span> <span class='id identifier rubyid_html_options'>html_options</span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_block'>block</span>
|
466
|
-
<span class='id identifier rubyid_h'>h</span> <span class='op'>=</span> <span class='const'>Hash</span><span class='lbracket'>[</span><span class='id identifier rubyid_o'>o</span><span class='lbracket'>[</span><span class='symbol'>:position</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='lbrace'>{</span> <span class='label'>component:</span> <span class='id identifier rubyid_c'>c</span><span class='comma'>,</span> <span class='label'>num:</span> <span class='id identifier rubyid_o'>o</span><span class='lbracket'>[</span><span class='symbol'>:num</span><span class='rbracket'>]</span><span class='rbrace'>}</span><span class='rbracket'>]</span>
|
467
|
-
<span class='ivar'>@views</span> <span class='op'>=</span> <span class='ivar'>@views</span><span class='period'>.</span><span class='id identifier rubyid_merge'>merge</span><span class='lparen'>(</span><span class='id identifier rubyid_h'>h</span><span class='rparen'>)</span>
|
468
|
-
<span class='kw'>end</span></pre>
|
469
|
-
</td>
|
470
|
-
</tr>
|
471
|
-
</table>
|
472
|
-
</div>
|
473
|
-
|
474
|
-
</div>
|
475
|
-
|
476
|
-
</div>
|
477
|
-
|
478
|
-
<div id="footer">
|
479
|
-
Generated on Mon Oct 19 15:25:14 2015 by
|
480
|
-
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
481
|
-
0.8.7.6 (ruby-2.2.3).
|
482
|
-
</div>
|
483
|
-
|
484
|
-
</body>
|
485
|
-
</html>
|