ui_bibz 1.2.2 → 1.2.3
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 +5 -13
- data/.yardoc/checksums +19 -19
- data/.yardoc/object_types +0 -0
- data/.yardoc/objects/root.dat +0 -0
- data/Gemfile.lock +4 -1
- data/README.md +46 -45
- data/doc/UiBibz/Concerns/Models/Searchable/ClassMethods.html +2 -2
- data/doc/UiBibz/Concerns/Models/Searchable.html +2 -2
- data/doc/UiBibz/Concerns/Models.html +2 -2
- data/doc/UiBibz/Concerns.html +2 -2
- data/doc/UiBibz/Helpers/MetaHelper.html +7 -6
- data/doc/UiBibz/Helpers/UiCoreHelper.html +14 -14
- data/doc/UiBibz/Helpers/UiUxHelper.html +4 -4
- data/doc/UiBibz/Helpers/UtilsHelper.html +2 -2
- data/doc/UiBibz/Helpers.html +2 -2
- data/doc/UiBibz/Rails/Engine.html +2 -2
- data/doc/UiBibz/Rails.html +2 -2
- data/doc/UiBibz/Ui/Base.html +2 -2
- data/doc/UiBibz/Ui/Core/Alert.html +26 -23
- data/doc/UiBibz/Ui/Core/Bar.html +21 -18
- data/doc/UiBibz/Ui/Core/Breadcrumb.html +22 -20
- data/doc/UiBibz/Ui/Core/BreadcrumbLink.html +23 -21
- data/doc/UiBibz/Ui/Core/Button.html +28 -24
- data/doc/UiBibz/Ui/Core/ButtonDropdown.html +29 -26
- data/doc/UiBibz/Ui/Core/ButtonGroup.html +27 -24
- data/doc/UiBibz/Ui/Core/ButtonLink.html +29 -25
- data/doc/UiBibz/Ui/Core/ButtonSplitDropdown.html +29 -26
- data/doc/UiBibz/Ui/Core/Col.html +23 -20
- data/doc/UiBibz/Ui/Core/Component.html +30 -28
- data/doc/UiBibz/Ui/Core/Dropdown.html +27 -24
- data/doc/UiBibz/Ui/Core/DropdownDivider.html +3 -3
- data/doc/UiBibz/Ui/Core/DropdownHeader.html +20 -18
- data/doc/UiBibz/Ui/Core/DropdownLink.html +27 -24
- data/doc/UiBibz/Ui/Core/Glyph.html +26 -23
- data/doc/UiBibz/Ui/Core/Jumbotron.html +21 -18
- data/doc/UiBibz/Ui/Core/Label.html +27 -23
- data/doc/UiBibz/Ui/Core/List.html +31 -28
- data/doc/UiBibz/Ui/Core/ListGroup.html +24 -22
- data/doc/UiBibz/Ui/Core/Modal.html +26 -24
- data/doc/UiBibz/Ui/Core/ModalBody.html +16 -14
- data/doc/UiBibz/Ui/Core/ModalFooter.html +16 -14
- data/doc/UiBibz/Ui/Core/ModalHeader.html +17 -15
- data/doc/UiBibz/Ui/Core/Nav.html +20 -18
- data/doc/UiBibz/Ui/Core/NavDropdown.html +23 -21
- data/doc/UiBibz/Ui/Core/NavLink.html +22 -20
- data/doc/UiBibz/Ui/Core/Navbar.html +29 -27
- data/doc/UiBibz/Ui/Core/NavbarForm.html +22 -19
- data/doc/UiBibz/Ui/Core/NavbarNav.html +17 -16
- data/doc/UiBibz/Ui/Core/NavbarText.html +16 -15
- data/doc/UiBibz/Ui/Core/Panel.html +27 -23
- data/doc/UiBibz/Ui/Core/ProgressBar.html +23 -20
- data/doc/UiBibz/Ui/Core/Row.html +13 -11
- data/doc/UiBibz/Ui/Core/Stars.html +23 -19
- data/doc/UiBibz/Ui/Core.html +3 -3
- data/doc/UiBibz/Ui/Ux/Actionable.html +6 -6
- data/doc/UiBibz/Ui/Ux/Actions.html +2 -2
- data/doc/UiBibz/Ui/Ux/Column.html +2 -2
- data/doc/UiBibz/Ui/Ux/Columns.html +2 -2
- data/doc/UiBibz/Ui/Ux/Grid.html +23 -21
- data/doc/UiBibz/Ui/Ux/Paginable.html +5 -5
- data/doc/UiBibz/Ui/Ux/Searchable.html +4 -4
- data/doc/UiBibz/Ui/Ux/Sortable.html +2 -2
- data/doc/UiBibz/Ui/Ux/Store.html +2 -2
- data/doc/UiBibz/Ui/Ux/Table.html +36 -34
- data/doc/UiBibz/Ui/Ux/TablePagination.html +22 -16
- data/doc/UiBibz/Ui/Ux/TablePaginationPerPage.html +17 -15
- data/doc/UiBibz/Ui/Ux/TablePanel.html +58 -50
- data/doc/UiBibz/Ui/Ux/TableSearchField.html +4 -4
- data/doc/UiBibz/Ui/Ux.html +3 -3
- data/doc/UiBibz/Ui.html +2 -2
- data/doc/UiBibz/Utils/Internationalization.html +2 -2
- data/doc/UiBibz/Utils.html +2 -2
- data/doc/UiBibz.html +3 -3
- data/doc/_index.html +6 -6
- data/doc/file.README.html +734 -623
- data/doc/index.html +734 -623
- data/doc/method_list.html +227 -227
- data/doc/top-level-namespace.html +2 -2
- data/lib/ui_bibz/ui/ux/table/extensions/paginable.rb +2 -2
- data/lib/ui_bibz/ui/ux/table/table_pagination.rb +3 -1
- data/lib/ui_bibz/ui/ux/table/table_pagination_per_page.rb +10 -2
- data/lib/ui_bibz/ui/ux/table/table_panel.rb +24 -6
- data/lib/ui_bibz/ui/ux/table/table_search_field.rb +9 -1
- data/lib/ui_bibz/version.rb +1 -1
- metadata +39 -39
@@ -110,58 +110,62 @@
|
|
110
110
|
|
111
111
|
<p>This element is an extend of UiBibz::Ui::Core::Component.</p>
|
112
112
|
|
113
|
-
<h4>Attributes</h4>
|
113
|
+
<h4 id="label-Attributes">Attributes</h4>
|
114
114
|
<ul><li>
|
115
|
-
<p><
|
115
|
+
<p><code>content</code> - Content of element</p>
|
116
116
|
</li><li>
|
117
|
-
<p><
|
117
|
+
<p><code>options</code> - Options of element</p>
|
118
118
|
</li><li>
|
119
|
-
<p><
|
119
|
+
<p><code>html_options</code> - Html Options of element</p>
|
120
120
|
</li></ul>
|
121
121
|
|
122
|
-
<h4>Options</h4>
|
122
|
+
<h4 id="label-Options">Options</h4>
|
123
123
|
|
124
|
-
<p>You can add HTML attributes using the <
|
125
|
-
arguments in options attribute:</p>
|
124
|
+
<p>You can add HTML attributes using the <code>html_options</code>. You can
|
125
|
+
pass arguments in options attribute:</p>
|
126
126
|
<ul><li>
|
127
|
-
<p><
|
128
|
-
<
|
127
|
+
<p><code>state</code> - State of élement with symbol value:
|
128
|
+
(<code>:default</code>, <code>:primary</code>, <code>:info</code>,
|
129
|
+
<code>:warning</code>, <code>:danger</code>)</p>
|
129
130
|
</li><li>
|
130
|
-
<p><
|
131
|
+
<p><code>size</code> (<code>:xs</code>, <code>:sm</code>, <code>:lg</code>)</p>
|
131
132
|
</li><li>
|
132
|
-
<p><
|
133
|
+
<p><code>glyph</code> - Add glyph with name or hash options</p>
|
133
134
|
<ul><li>
|
134
|
-
<p><
|
135
|
+
<p><code>name</code> - String</p>
|
135
136
|
</li><li>
|
136
|
-
<p><
|
137
|
+
<p><code>size</code> - Integer</p>
|
137
138
|
</li><li>
|
138
|
-
<p><
|
139
|
+
<p><code>type</code> - Symbol</p>
|
139
140
|
</li></ul>
|
140
141
|
</li></ul>
|
141
142
|
|
142
|
-
<h4>Signatures</h4>
|
143
|
+
<h4 id="label-Signatures">Signatures</h4>
|
143
144
|
|
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'>Button</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>
|
145
146
|
|
146
147
|
<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'>Button</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>
|
147
148
|
<span class='id identifier rubyid_content'>content</span>
|
148
|
-
<span class='kw'>end</span
|
149
|
+
<span class='kw'>end</span>
|
150
|
+
</code></pre>
|
149
151
|
|
150
|
-
<h4>Examples</h4>
|
152
|
+
<h4 id="label-Examples">Examples</h4>
|
151
153
|
|
152
|
-
<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'>Button</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'
|
154
|
+
<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'>Button</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>test</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='label'>type:</span> <span class='symbol'>:primary</span><span class='comma'>,</span> <span class='label'>size:</span> <span class='symbol'>:xs</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_render'>render</span>
|
153
155
|
|
154
156
|
<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'>Button</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='label'>type:</span> <span class='symbol'>:primary</span><span class='rparen'>)</span> <span class='kw'>do</span>
|
155
157
|
<span class='id identifier rubyid_test'>test</span>
|
156
|
-
<span class='kw'>end</span><span class='period'>.</span><span class='id identifier rubyid_render'>render</span
|
158
|
+
<span class='kw'>end</span><span class='period'>.</span><span class='id identifier rubyid_render'>render</span>
|
159
|
+
</code></pre>
|
157
160
|
|
158
|
-
<h4>Helper</h4>
|
161
|
+
<h4 id="label-Helper">Helper</h4>
|
159
162
|
|
160
163
|
<pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_button'>button</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>
|
161
164
|
|
162
165
|
<span class='id identifier rubyid_button'>button</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>
|
163
166
|
<span class='id identifier rubyid_content'>content</span>
|
164
|
-
<span class='kw'>end</span
|
167
|
+
<span class='kw'>end</span>
|
168
|
+
</code></pre>
|
165
169
|
|
166
170
|
|
167
171
|
</div>
|
@@ -355,7 +359,7 @@ arguments in options attribute:</p>
|
|
355
359
|
<pre class="code"><span class="info file"># File 'lib/ui_bibz/ui/core/button/button.rb', line 57</span>
|
356
360
|
|
357
361
|
<span class='kw'>def</span> <span class='id identifier rubyid_render'>render</span>
|
358
|
-
<span class='id identifier rubyid_content_tag'>content_tag</span> <span class='symbol'>:button</span><span class='comma'>,</span> <span class='id identifier rubyid_glyph_and_content_html'>glyph_and_content_html</span><span class='comma'>,</span> <span class='id identifier rubyid_class_and_html_options'>class_and_html_options</span><span class='lparen'>(</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'
|
362
|
+
<span class='id identifier rubyid_content_tag'>content_tag</span> <span class='symbol'>:button</span><span class='comma'>,</span> <span class='id identifier rubyid_glyph_and_content_html'>glyph_and_content_html</span><span class='comma'>,</span> <span class='id identifier rubyid_class_and_html_options'>class_and_html_options</span><span class='lparen'>(</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>btn</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='id identifier rubyid_size'>size</span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
359
363
|
<span class='kw'>end</span></pre>
|
360
364
|
</td>
|
361
365
|
</tr>
|
@@ -367,9 +371,9 @@ arguments in options attribute:</p>
|
|
367
371
|
</div>
|
368
372
|
|
369
373
|
<div id="footer">
|
370
|
-
Generated on
|
374
|
+
Generated on Mon Oct 19 15:25:15 2015 by
|
371
375
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
372
|
-
0.8.7.6 (ruby-
|
376
|
+
0.8.7.6 (ruby-2.2.3).
|
373
377
|
</div>
|
374
378
|
|
375
379
|
</body>
|
@@ -112,36 +112,37 @@
|
|
112
112
|
|
113
113
|
<p>This element is an extend of UiBibz::Ui::Core::Dropdown.</p>
|
114
114
|
|
115
|
-
<h4>Attributes</h4>
|
115
|
+
<h4 id="label-Attributes">Attributes</h4>
|
116
116
|
<ul><li>
|
117
|
-
<p><
|
117
|
+
<p><code>content</code> - Content of element</p>
|
118
118
|
</li><li>
|
119
|
-
<p><
|
119
|
+
<p><code>options</code> - Options of element</p>
|
120
120
|
</li><li>
|
121
|
-
<p><
|
121
|
+
<p><code>html_options</code> - Html Options of element</p>
|
122
122
|
</li></ul>
|
123
123
|
|
124
|
-
<h4>Options</h4>
|
124
|
+
<h4 id="label-Options">Options</h4>
|
125
125
|
|
126
|
-
<p>You can add HTML attributes using the <
|
127
|
-
arguments in options attribute:</p>
|
126
|
+
<p>You can add HTML attributes using the <code>html_options</code>. You can
|
127
|
+
pass arguments in options attribute:</p>
|
128
128
|
<ul><li>
|
129
|
-
<p><
|
130
|
-
<
|
129
|
+
<p><code>state</code> - State of élement with symbol value:
|
130
|
+
(<code>:default</code>, <code>:primary</code>, <code>:info</code>,
|
131
|
+
<code>:warning</code>, <code>:danger</code>)</p>
|
131
132
|
</li><li>
|
132
|
-
<p><
|
133
|
+
<p><code>size</code> (<code>:xs</code>, <code>:sm</code>, <code>:lg</code>)</p>
|
133
134
|
</li><li>
|
134
|
-
<p><
|
135
|
+
<p><code>glyph</code> - Add glyph with name or hash options</p>
|
135
136
|
<ul><li>
|
136
|
-
<p><
|
137
|
+
<p><code>name</code> - String</p>
|
137
138
|
</li><li>
|
138
|
-
<p><
|
139
|
+
<p><code>size</code> - Integer</p>
|
139
140
|
</li><li>
|
140
|
-
<p><
|
141
|
+
<p><code>type</code> - Symbol</p>
|
141
142
|
</li></ul>
|
142
143
|
</li></ul>
|
143
144
|
|
144
|
-
<h4>Signatures</h4>
|
145
|
+
<h4 id="label-Signatures">Signatures</h4>
|
145
146
|
|
146
147
|
<pre class="code ruby"><code class="ruby">UiBibz::Ui::Core::ButtonDropdown.new(options = nil, html_options = nil).tap do |d|
|
147
148
|
...
|
@@ -150,23 +151,25 @@ arguments in options attribute:</p>
|
|
150
151
|
...
|
151
152
|
end</code></pre>
|
152
153
|
|
153
|
-
<h4>Examples</h4>
|
154
|
+
<h4 id="label-Examples">Examples</h4>
|
154
155
|
|
155
156
|
<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'>ButtonDropdown</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='label'>state:</span> <span class='symbol'>:success</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_d'>d</span><span class='op'>|</span>
|
156
|
-
<span class='id identifier rubyid_d'>d</span><span class='period'>.</span><span class='id identifier rubyid_link'>link</span> <span class='tstring'><span class='tstring_beg'
|
157
|
-
<span class='id identifier rubyid_d'>d</span><span class='period'>.</span><span class='id identifier rubyid_list'>list</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'
|
158
|
-
<span class='id identifier rubyid_d'>d</span><span class='period'>.</span><span class='id identifier rubyid_list'>list</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'
|
159
|
-
<span class='id identifier rubyid_d'>d</span><span class='period'>.</span><span class='id identifier rubyid_link'>link</span> <span class='tstring'><span class='tstring_beg'
|
160
|
-
<span class='kw'>end</span><span class='period'>.</span><span class='id identifier rubyid_render'>render</span
|
157
|
+
<span class='id identifier rubyid_d'>d</span><span class='period'>.</span><span class='id identifier rubyid_link'>link</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>test</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='lbrace'>{</span> <span class='label'>url:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>#Test1</span><span class='tstring_end'>'</span></span> <span class='rbrace'>}</span>
|
158
|
+
<span class='id identifier rubyid_d'>d</span><span class='period'>.</span><span class='id identifier rubyid_list'>list</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>
|
159
|
+
<span class='id identifier rubyid_d'>d</span><span class='period'>.</span><span class='id identifier rubyid_list'>list</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Header 1</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='lbrace'>{</span> <span class='label'>type:</span> <span class='symbol'>:header</span> <span class='rbrace'>}</span><span class='rparen'>)</span>
|
160
|
+
<span class='id identifier rubyid_d'>d</span><span class='period'>.</span><span class='id identifier rubyid_link'>link</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>test2</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='lbrace'>{</span> <span class='label'>url:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>#Test2</span><span class='tstring_end'>'</span></span> <span class='rbrace'>}</span>
|
161
|
+
<span class='kw'>end</span><span class='period'>.</span><span class='id identifier rubyid_render'>render</span>
|
162
|
+
</code></pre>
|
161
163
|
|
162
|
-
<h4>Helper</h4>
|
164
|
+
<h4 id="label-Helper">Helper</h4>
|
163
165
|
|
164
166
|
<pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_button_dropdown'>button_dropdown</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</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_d'>d</span><span class='op'>|</span>
|
165
167
|
<span class='id identifier rubyid_d'>d</span><span class='period'>.</span><span class='id identifier rubyid_list'>list</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>
|
166
168
|
<span class='id identifier rubyid_d'>d</span><span class='period'>.</span><span class='id identifier rubyid_list'>list</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>
|
167
169
|
<span class='id identifier rubyid_content'>content</span>
|
168
170
|
<span class='kw'>end</span>
|
169
|
-
<span class='kw'>end</span
|
171
|
+
<span class='kw'>end</span>
|
172
|
+
</code></pre>
|
170
173
|
|
171
174
|
|
172
175
|
</div>
|
@@ -374,7 +377,7 @@ end</code></pre>
|
|
374
377
|
<pre class="code"><span class="info file"># File 'lib/ui_bibz/ui/core/button/button_dropdown.rb', line 61</span>
|
375
378
|
|
376
379
|
<span class='kw'>def</span> <span class='id identifier rubyid_render'>render</span>
|
377
|
-
<span class='id identifier rubyid_content_tag'>content_tag</span> <span class='symbol'>:div</span><span class='comma'>,</span> <span class='id identifier rubyid_class_and_html_options'>class_and_html_options</span><span class='lparen'>(</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'
|
380
|
+
<span class='id identifier rubyid_content_tag'>content_tag</span> <span class='symbol'>:div</span><span class='comma'>,</span> <span class='id identifier rubyid_class_and_html_options'>class_and_html_options</span><span class='lparen'>(</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>btn-group</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='id identifier rubyid_type'>type</span><span class='rbracket'>]</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_merge'>merge</span><span class='lparen'>(</span><span class='lbrace'>{</span> <span class='label'>role:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>group</span><span class='tstring_end'>'</span></span> <span class='rbrace'>}</span><span class='rparen'>)</span> <span class='kw'>do</span>
|
378
381
|
<span class='id identifier rubyid_concat'>concat</span> <span class='id identifier rubyid_button_html'>button_html</span>
|
379
382
|
<span class='id identifier rubyid_concat'>concat</span> <span class='id identifier rubyid_ul_html'>ul_html</span>
|
380
383
|
<span class='kw'>end</span>
|
@@ -389,9 +392,9 @@ end</code></pre>
|
|
389
392
|
</div>
|
390
393
|
|
391
394
|
<div id="footer">
|
392
|
-
Generated on
|
395
|
+
Generated on Mon Oct 19 15:25:16 2015 by
|
393
396
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
394
|
-
0.8.7.6 (ruby-
|
397
|
+
0.8.7.6 (ruby-2.2.3).
|
395
398
|
</div>
|
396
399
|
|
397
400
|
</body>
|
@@ -110,51 +110,54 @@
|
|
110
110
|
|
111
111
|
<p>This element is an extend of UiBibz::Ui::Core::Component.</p>
|
112
112
|
|
113
|
-
<h4>Attributes</h4>
|
113
|
+
<h4 id="label-Attributes">Attributes</h4>
|
114
114
|
<ul><li>
|
115
|
-
<p><
|
115
|
+
<p><code>content</code> - Content of element</p>
|
116
116
|
</li><li>
|
117
|
-
<p><
|
117
|
+
<p><code>options</code> - Options of element</p>
|
118
118
|
</li><li>
|
119
|
-
<p><
|
119
|
+
<p><code>html_options</code> - Html Options of element</p>
|
120
120
|
</li></ul>
|
121
121
|
|
122
|
-
<h4>Options</h4>
|
122
|
+
<h4 id="label-Options">Options</h4>
|
123
123
|
|
124
|
-
<p>You can add HTML attributes using the <
|
125
|
-
arguments in options attribute:</p>
|
124
|
+
<p>You can add HTML attributes using the <code>html_options</code>. You can
|
125
|
+
pass arguments in options attribute:</p>
|
126
126
|
<ul><li>
|
127
|
-
<p><
|
128
|
-
(<
|
129
|
-
<
|
127
|
+
<p><code>state</code> - State of element with <code>symbol</code> value:
|
128
|
+
(<code>:default</code>, <code>:primary</code>, <code>:info</code>,
|
129
|
+
<code>:warning</code>, <code>:danger</code>)</p>
|
130
130
|
</li><li>
|
131
|
-
<p><
|
132
|
-
<
|
131
|
+
<p><code>size</code> - Size of element with <code>symbol</code> value:
|
132
|
+
(<code>:xs</code>, <code>:sm</code>, <code>:lg</code>)</p>
|
133
133
|
</li><li>
|
134
|
-
<p><
|
135
|
-
value: (<
|
134
|
+
<p><code>position</code> - Position vertical or horizontal with
|
135
|
+
<code>symbol</code> value: (<code>:vertical</code>,
|
136
|
+
<code>:horizontal</code>)</p>
|
136
137
|
</li></ul>
|
137
138
|
|
138
|
-
<h4>Signatures</h4>
|
139
|
+
<h4 id="label-Signatures">Signatures</h4>
|
139
140
|
|
140
141
|
<pre class="code ruby"><code class="ruby">UiBibz::Ui::Core::ButtonGroup.new(options = nil, html_options = nil) do
|
141
142
|
...
|
142
143
|
end</code></pre>
|
143
144
|
|
144
|
-
<h4>Examples</h4>
|
145
|
+
<h4 id="label-Examples">Examples</h4>
|
145
146
|
|
146
147
|
<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'>ButtonGroup</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='label'>position:</span> <span class='symbol'>:vertical</span><span class='comma'>,</span> <span class='label'>size:</span> <span class='symbol'>:xs</span><span class='rparen'>)</span> <span class='kw'>do</span>
|
147
|
-
<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='period'>.</span><span class='const'>Button</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'
|
148
|
-
<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='period'>.</span><span class='const'>Button</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'
|
149
|
-
<span class='kw'>end</span><span class='period'>.</span><span class='id identifier rubyid_render'>render</span
|
148
|
+
<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='period'>.</span><span class='const'>Button</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</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='period'>.</span><span class='id identifier rubyid_render'>render</span>
|
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='period'>.</span><span class='const'>Button</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>test2</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_render'>render</span>
|
150
|
+
<span class='kw'>end</span><span class='period'>.</span><span class='id identifier rubyid_render'>render</span>
|
151
|
+
</code></pre>
|
150
152
|
|
151
|
-
<h4>Helper</h4>
|
153
|
+
<h4 id="label-Helper">Helper</h4>
|
152
154
|
|
153
155
|
<pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_button_group'>button_group</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>
|
154
156
|
|
155
157
|
<span class='id identifier rubyid_button_group'>button_group</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>
|
156
158
|
<span class='id identifier rubyid_content'>content</span>
|
157
|
-
<span class='kw'>end</span
|
159
|
+
<span class='kw'>end</span>
|
160
|
+
</code></pre>
|
158
161
|
|
159
162
|
|
160
163
|
</div>
|
@@ -348,7 +351,7 @@ end</code></pre>
|
|
348
351
|
<pre class="code"><span class="info file"># File 'lib/ui_bibz/ui/core/button/button_group.rb', line 53</span>
|
349
352
|
|
350
353
|
<span class='kw'>def</span> <span class='id identifier rubyid_render'>render</span>
|
351
|
-
<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='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>btn-</span><span class='embexpr_beg'>#{</span> <span class='id identifier rubyid_type'>type</span> <span class='
|
354
|
+
<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='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>btn-</span><span class='embexpr_beg'>#{</span> <span class='id identifier rubyid_type'>type</span> <span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='id identifier rubyid_size'>size</span><span class='comma'>,</span> <span class='id identifier rubyid_position'>position</span><span class='rbracket'>]</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_merge'>merge</span><span class='lparen'>(</span><span class='lbrace'>{</span> <span class='label'>role:</span> <span class='id identifier rubyid_type'>type</span> <span class='rbrace'>}</span><span class='rparen'>)</span>
|
352
355
|
<span class='kw'>end</span></pre>
|
353
356
|
</td>
|
354
357
|
</tr>
|
@@ -360,9 +363,9 @@ end</code></pre>
|
|
360
363
|
</div>
|
361
364
|
|
362
365
|
<div id="footer">
|
363
|
-
Generated on
|
366
|
+
Generated on Mon Oct 19 15:25:15 2015 by
|
364
367
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
365
|
-
0.8.7.6 (ruby-
|
368
|
+
0.8.7.6 (ruby-2.2.3).
|
366
369
|
</div>
|
367
370
|
|
368
371
|
</body>
|
@@ -110,60 +110,64 @@
|
|
110
110
|
|
111
111
|
<p>This element is an extend of UiBibz::Ui::Core::Component.</p>
|
112
112
|
|
113
|
-
<h4>Attributes</h4>
|
113
|
+
<h4 id="label-Attributes">Attributes</h4>
|
114
114
|
<ul><li>
|
115
|
-
<p><
|
115
|
+
<p><code>content</code> - Content of element</p>
|
116
116
|
</li><li>
|
117
|
-
<p><
|
117
|
+
<p><code>options</code> - Options of element</p>
|
118
118
|
</li><li>
|
119
|
-
<p><
|
119
|
+
<p><code>html_options</code> - Html Options of element</p>
|
120
120
|
</li></ul>
|
121
121
|
|
122
|
-
<h4>Options</h4>
|
122
|
+
<h4 id="label-Options">Options</h4>
|
123
123
|
|
124
|
-
<p>You can add HTML attributes using the <
|
125
|
-
arguments in options attribute:</p>
|
124
|
+
<p>You can add HTML attributes using the <code>html_options</code>. You can
|
125
|
+
pass arguments in options attribute:</p>
|
126
126
|
<ul><li>
|
127
|
-
<p><
|
128
|
-
<
|
127
|
+
<p><code>state</code> - State of élement with symbol value:
|
128
|
+
(<code>:default</code>, <code>:primary</code>, <code>:info</code>,
|
129
|
+
<code>:warning</code>, <code>:danger</code>)</p>
|
129
130
|
</li><li>
|
130
|
-
<p><
|
131
|
+
<p><code>size</code> (<code>:xs</code>, <code>:sm</code>, <code>:lg</code>)</p>
|
131
132
|
</li><li>
|
132
|
-
<p><
|
133
|
+
<p><code>url</code> - String url</p>
|
133
134
|
</li><li>
|
134
|
-
<p><
|
135
|
+
<p><code>glyph</code> - Add glyph with name or hash options</p>
|
135
136
|
<ul><li>
|
136
|
-
<p><
|
137
|
+
<p><code>name</code> - String</p>
|
137
138
|
</li><li>
|
138
|
-
<p><
|
139
|
+
<p><code>size</code> - Integer</p>
|
139
140
|
</li><li>
|
140
|
-
<p><
|
141
|
+
<p><code>type</code> - Symbol</p>
|
141
142
|
</li></ul>
|
142
143
|
</li></ul>
|
143
144
|
|
144
|
-
<h4>Signatures</h4>
|
145
|
+
<h4 id="label-Signatures">Signatures</h4>
|
145
146
|
|
146
147
|
<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'>ButtonLink</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>
|
147
148
|
|
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'>ButtonLink</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>
|
149
150
|
<span class='id identifier rubyid_content'>content</span>
|
150
|
-
<span class='kw'>end</span
|
151
|
+
<span class='kw'>end</span>
|
152
|
+
</code></pre>
|
151
153
|
|
152
|
-
<h4>Examples</h4>
|
154
|
+
<h4 id="label-Examples">Examples</h4>
|
153
155
|
|
154
|
-
<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'>ButtonLink</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'
|
156
|
+
<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'>ButtonLink</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>test</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='label'>type:</span> <span class='symbol'>:primary</span><span class='comma'>,</span> <span class='label'>url:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>#</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
155
157
|
|
156
|
-
<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'>ButtonLink</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='label'>type:</span> <span class='symbol'>:primary</span><span class='comma'>,</span> <span class='label'>url:</span> <span class='tstring'><span class='tstring_beg'
|
158
|
+
<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'>ButtonLink</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='label'>type:</span> <span class='symbol'>:primary</span><span class='comma'>,</span> <span class='label'>url:</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'>do</span>
|
157
159
|
<span class='id identifier rubyid_test'>test</span>
|
158
|
-
<span class='kw'>end</span><span class='period'>.</span><span class='id identifier rubyid_render'>render</span
|
160
|
+
<span class='kw'>end</span><span class='period'>.</span><span class='id identifier rubyid_render'>render</span>
|
161
|
+
</code></pre>
|
159
162
|
|
160
|
-
<h4>Helper</h4>
|
163
|
+
<h4 id="label-Helper">Helper</h4>
|
161
164
|
|
162
165
|
<pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_button_link'>button_link</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>
|
163
166
|
|
164
167
|
<span class='id identifier rubyid_button_link'>button_link</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>
|
165
168
|
<span class='id identifier rubyid_content'>content</span>
|
166
|
-
<span class='kw'>end</span
|
169
|
+
<span class='kw'>end</span>
|
170
|
+
</code></pre>
|
167
171
|
|
168
172
|
|
169
173
|
</div>
|
@@ -369,9 +373,9 @@ arguments in options attribute:</p>
|
|
369
373
|
</div>
|
370
374
|
|
371
375
|
<div id="footer">
|
372
|
-
Generated on
|
376
|
+
Generated on Mon Oct 19 15:25:15 2015 by
|
373
377
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
374
|
-
0.8.7.6 (ruby-
|
378
|
+
0.8.7.6 (ruby-2.2.3).
|
375
379
|
</div>
|
376
380
|
|
377
381
|
</body>
|