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,29 +110,31 @@
|
|
110
110
|
|
111
111
|
<p>Create a select pagination per page</p>
|
112
112
|
|
113
|
-
<h4>Attributes</h4>
|
113
|
+
<h4 id="label-Attributes">Attributes</h4>
|
114
114
|
<ul><li>
|
115
|
-
<p><
|
115
|
+
<p><code>options</code> - Options of element</p>
|
116
116
|
</li><li>
|
117
|
-
<p><
|
117
|
+
<p><code>html_options</code> - Html Options of element</p>
|
118
118
|
</li></ul>
|
119
119
|
|
120
|
-
<h4>Options</h4>
|
120
|
+
<h4 id="label-Options">Options</h4>
|
121
121
|
|
122
|
-
<p>You can add HTML attributes using the <
|
123
|
-
arguments in options attribute:</p>
|
122
|
+
<p>You can add HTML attributes using the <code>html_options</code>. You can
|
123
|
+
pass arguments in options attribute:</p>
|
124
124
|
<ul><li>
|
125
|
-
<p><
|
126
|
-
method</p>
|
125
|
+
<p><code>store</code> - Store generate by
|
126
|
+
'<code>table_search_pagination</code>' method</p>
|
127
127
|
</li></ul>
|
128
128
|
|
129
|
-
<h4>Signatures</h4>
|
129
|
+
<h4 id="label-Signatures">Signatures</h4>
|
130
130
|
|
131
|
-
<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'>TablePaginationPerPage</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='label'>store:</span> <span class='ivar'>@store</span><span class='rparen'>)</span
|
131
|
+
<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'>TablePaginationPerPage</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='label'>store:</span> <span class='ivar'>@store</span><span class='rparen'>)</span>
|
132
|
+
</code></pre>
|
132
133
|
|
133
|
-
<h4>Helper</h4>
|
134
|
+
<h4 id="label-Helper">Helper</h4>
|
134
135
|
|
135
|
-
<pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_table_pagination_per_page'>table_pagination_per_page</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='rparen'>)</span
|
136
|
+
<pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_table_pagination_per_page'>table_pagination_per_page</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='rparen'>)</span>
|
137
|
+
</code></pre>
|
136
138
|
|
137
139
|
|
138
140
|
</div>
|
@@ -321,7 +323,7 @@ WillPaginate gem</p>
|
|
321
323
|
<span class='kw'>def</span> <span class='id identifier rubyid_render'>render</span>
|
322
324
|
<span class='kw'>if</span> <span class='ivar'>@per_page_field</span><span class='period'>.</span><span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:wrap_form</span><span class='rbracket'>]</span> <span class='op'>!=</span> <span class='kw'>false</span>
|
323
325
|
<span class='id identifier rubyid_form_tag'>form_tag</span><span class='lparen'>(</span><span class='id identifier rubyid_url_for'>url_for</span><span class='lparen'>(</span><span class='id identifier rubyid_url_parameters'>url_parameters</span><span class='rparen'>)</span><span class='comma'>,</span> <span class='label'>method:</span> <span class='symbol'>:get</span><span class='rparen'>)</span> <span class='kw'>do</span>
|
324
|
-
<span class='id identifier
|
326
|
+
<span class='id identifier rubyid_per_page_html_in_wrap'>per_page_html_in_wrap</span>
|
325
327
|
<span class='kw'>end</span>
|
326
328
|
<span class='kw'>else</span>
|
327
329
|
<span class='id identifier rubyid_per_page_html'>per_page_html</span>
|
@@ -337,9 +339,9 @@ WillPaginate gem</p>
|
|
337
339
|
</div>
|
338
340
|
|
339
341
|
<div id="footer">
|
340
|
-
Generated on
|
342
|
+
Generated on Mon Oct 19 15:25:16 2015 by
|
341
343
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
342
|
-
0.8.7.6 (ruby-
|
344
|
+
0.8.7.6 (ruby-2.2.3).
|
343
345
|
</div>
|
344
346
|
|
345
347
|
</body>
|
@@ -112,70 +112,71 @@
|
|
112
112
|
|
113
113
|
<p>This element is an extend of UiBibz::Ui::Ux::Panel.</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
|
-
method</p>
|
129
|
+
<p><code>store</code> - Store generate by
|
130
|
+
'<code>table_search_pagination</code>' method</p>
|
131
131
|
</li><li>
|
132
|
-
<p><
|
132
|
+
<p><code>url</code> - String</p>
|
133
133
|
</li><li>
|
134
|
-
<p><
|
134
|
+
<p><code>tap</code> - Boolean</p>
|
135
135
|
</li><li>
|
136
|
-
<p><
|
136
|
+
<p><code>table_options</code> - Hash</p>
|
137
137
|
<ul><li>
|
138
|
-
<p><
|
138
|
+
<p><code>actionable</code> - Boolean</p>
|
139
139
|
</li><li>
|
140
|
-
<p><
|
140
|
+
<p><code>sortable</code> - Boolean</p>
|
141
141
|
</li><li>
|
142
|
-
<p><
|
142
|
+
<p><code>searchable</code> - Boolean</p>
|
143
143
|
</li></ul>
|
144
144
|
</li></ul>
|
145
145
|
|
146
|
-
<h4>Signatures</h4>
|
146
|
+
<h4 id="label-Signatures">Signatures</h4>
|
147
147
|
|
148
148
|
<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'>TablePanel</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='label'>store:</span> <span class='ivar'>@store</span><span class='rparen'>)</span>
|
149
149
|
|
150
150
|
<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'>TablePanel</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='label'>store:</span> <span class='ivar'>@store</span><span class='comma'>,</span> <span class='label'>tap:</span> <span class='kw'>true</span><span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_t'>t</span><span class='op'>|</span>
|
151
151
|
<span class='id identifier rubyid_t'>t</span><span class='period'>.</span><span class='id identifier rubyid_columns'>columns</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_c'>c</span><span class='op'>|</span>
|
152
|
-
<span class='id identifier rubyid_c'>c</span><span class='period'>.</span><span class='id identifier rubyid_column'>column</span> <span class='tstring'><span class='tstring_beg'
|
152
|
+
<span class='id identifier rubyid_c'>c</span><span class='period'>.</span><span class='id identifier rubyid_column'>column</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>#</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='lbrace'>{</span> <span class='label'>data_index:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>#</span><span class='tstring_end'>'</span></span> <span class='rbrace'>}</span>
|
153
153
|
<span class='kw'>end</span>
|
154
154
|
<span class='id identifier rubyid_t'>t</span><span class='period'>.</span><span class='id identifier rubyid_actions'>actions</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_a'>a</span><span class='op'>|</span>
|
155
|
-
<span class='id identifier rubyid_a'>a</span><span class='period'>.</span><span class='id identifier rubyid_action'>action</span> <span class='tstring'><span class='tstring_beg'
|
155
|
+
<span class='id identifier rubyid_a'>a</span><span class='period'>.</span><span class='id identifier rubyid_action'>action</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='label'>url:</span> <span class='id identifier rubyid_url'>url</span><span class='comma'>,</span> <span class='label'>glyph:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_end'>'</span></span>
|
156
156
|
<span class='kw'>end</span>
|
157
|
-
<span class='kw'>end</span
|
157
|
+
<span class='kw'>end</span>
|
158
|
+
</code></pre>
|
158
159
|
|
159
|
-
<h4>Examples</h4>
|
160
|
+
<h4 id="label-Examples">Examples</h4>
|
160
161
|
|
161
162
|
<pre class="code ruby"><code class="ruby">UiBibz::Ui::Ux::TablePanel.new(store: @users, table_options: { actionable: false }).render
|
162
163
|
|
163
164
|
UiBibz::Ui::Ux::TablePanel.new(store: @users).tap do |t|
|
164
|
-
t.header
|
165
|
+
t.header 'My Table panel'
|
165
166
|
t.columns do |c|
|
166
|
-
c.column :id, { name:
|
167
|
-
c.column :name_fr, { name:
|
167
|
+
c.column :id, { name: '# }, { class: 'column-id' }
|
168
|
+
c.column :name_fr, { name: 'Name FR', link: edit_user_path(:id), order: 2 }
|
168
169
|
c.column :name_en
|
169
|
-
c.column :status_id, { name:
|
170
|
+
c.column :status_id, { name: 'Status', format: lambda{ |records, record| "Test #{ record.id}"} }
|
170
171
|
end
|
171
172
|
t.actions do |a|
|
172
|
-
a.action
|
173
|
-
a.action
|
174
|
-
a.action
|
173
|
+
a.action 'toto', url: users_path(:id), glyph: 'eye'
|
174
|
+
a.action '---'
|
175
|
+
a.action 'momo', url: users_path(:id), glyph: 'home'
|
175
176
|
end
|
176
177
|
end.render</code></pre>
|
177
178
|
|
178
|
-
<h4>Helper</h4>
|
179
|
+
<h4 id="label-Helper">Helper</h4>
|
179
180
|
|
180
181
|
<pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_table_panel'>table_panel</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>
|
181
182
|
|
@@ -210,7 +211,8 @@ end.render</code></pre>
|
|
210
211
|
</span> <span class='id identifier rubyid_t'>t</span><span class='period'>.</span><span class='id identifier rubyid_footer'>footer</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>
|
211
212
|
<span class='id identifier rubyid_content'>content</span>
|
212
213
|
<span class='kw'>end</span>
|
213
|
-
<span class='kw'>end</span
|
214
|
+
<span class='kw'>end</span>
|
215
|
+
</code></pre>
|
214
216
|
|
215
217
|
|
216
218
|
</div>
|
@@ -439,7 +441,6 @@ end.render</code></pre>
|
|
439
441
|
<pre class="lines">
|
440
442
|
|
441
443
|
|
442
|
-
98
|
443
444
|
99
|
444
445
|
100
|
445
446
|
101
|
@@ -447,12 +448,11 @@ end.render</code></pre>
|
|
447
448
|
103</pre>
|
448
449
|
</td>
|
449
450
|
<td>
|
450
|
-
<pre class="code"><span class="info file"># File 'lib/ui_bibz/ui/ux/table/table_panel.rb', line
|
451
|
+
<pre class="code"><span class="info file"># File 'lib/ui_bibz/ui/ux/table/table_panel.rb', line 99</span>
|
451
452
|
|
452
453
|
<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>
|
453
454
|
<span class='kw'>super</span>
|
454
|
-
<span class='
|
455
|
-
<span class='id identifier rubyid_table_options'>table_options</span> <span class='op'>=</span> <span class='lparen'>(</span><span class='ivar'>@options</span><span class='lbracket'>[</span><span class='symbol'>:table_options</span><span class='rbracket'>]</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_merge'>merge</span><span class='lparen'>(</span><span class='lbrace'>{</span> <span class='label'>store:</span> <span class='ivar'>@store</span> <span class='rbrace'>}</span><span class='rparen'>)</span>
|
455
|
+
<span class='id identifier rubyid_table_options'>table_options</span> <span class='op'>=</span> <span class='lparen'>(</span><span class='ivar'>@options</span><span class='lbracket'>[</span><span class='symbol'>:table_options</span><span class='rbracket'>]</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_merge'>merge</span><span class='lparen'>(</span><span class='lbrace'>{</span> <span class='label'>store:</span> <span class='id identifier rubyid_store'>store</span> <span class='rbrace'>}</span><span class='rparen'>)</span>
|
456
456
|
<span class='ivar'>@table</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'>Ux</span><span class='op'>::</span><span class='const'>Table</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_table_options'>table_options</span><span class='comma'>,</span> <span class='ivar'>@options</span><span class='lbracket'>[</span><span class='symbol'>:table_html_options</span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
457
457
|
<span class='kw'>end</span></pre>
|
458
458
|
</td>
|
@@ -493,12 +493,12 @@ end.render</code></pre>
|
|
493
493
|
<pre class="lines">
|
494
494
|
|
495
495
|
|
496
|
-
|
497
|
-
|
498
|
-
|
496
|
+
125
|
497
|
+
126
|
498
|
+
127</pre>
|
499
499
|
</td>
|
500
500
|
<td>
|
501
|
-
<pre class="code"><span class="info file"># File 'lib/ui_bibz/ui/ux/table/table_panel.rb', line
|
501
|
+
<pre class="code"><span class="info file"># File 'lib/ui_bibz/ui/ux/table/table_panel.rb', line 125</span>
|
502
502
|
|
503
503
|
<span class='kw'>def</span> <span class='id identifier rubyid_columns'>columns</span>
|
504
504
|
<span class='ivar'>@columns</span>
|
@@ -541,12 +541,12 @@ end.render</code></pre>
|
|
541
541
|
<pre class="lines">
|
542
542
|
|
543
543
|
|
544
|
-
|
545
|
-
|
546
|
-
|
544
|
+
130
|
545
|
+
131
|
546
|
+
132</pre>
|
547
547
|
</td>
|
548
548
|
<td>
|
549
|
-
<pre class="code"><span class="info file"># File 'lib/ui_bibz/ui/ux/table/table_panel.rb', line
|
549
|
+
<pre class="code"><span class="info file"># File 'lib/ui_bibz/ui/ux/table/table_panel.rb', line 130</span>
|
550
550
|
|
551
551
|
<span class='kw'>def</span> <span class='id identifier rubyid_actions'>actions</span> <span class='op'>&</span><span class='id identifier rubyid_block'>block</span>
|
552
552
|
<span class='ivar'>@table</span><span class='period'>.</span><span class='id identifier rubyid_actions'>actions</span> <span class='op'>&</span><span class='id identifier rubyid_block'>block</span>
|
@@ -582,12 +582,12 @@ end.render</code></pre>
|
|
582
582
|
<pre class="lines">
|
583
583
|
|
584
584
|
|
585
|
-
|
586
|
-
|
587
|
-
|
585
|
+
135
|
586
|
+
136
|
587
|
+
137</pre>
|
588
588
|
</td>
|
589
589
|
<td>
|
590
|
-
<pre class="code"><span class="info file"># File 'lib/ui_bibz/ui/ux/table/table_panel.rb', line
|
590
|
+
<pre class="code"><span class="info file"># File 'lib/ui_bibz/ui/ux/table/table_panel.rb', line 135</span>
|
591
591
|
|
592
592
|
<span class='kw'>def</span> <span class='id identifier rubyid_actions_list'>actions_list</span>
|
593
593
|
<span class='ivar'>@table</span><span class='period'>.</span><span class='id identifier rubyid_actions_list'>actions_list</span>
|
@@ -635,7 +635,11 @@ end.render</code></pre>
|
|
635
635
|
115
|
636
636
|
116
|
637
637
|
117
|
638
|
-
118
|
638
|
+
118
|
639
|
+
119
|
640
|
+
120
|
641
|
+
121
|
642
|
+
122</pre>
|
639
643
|
</td>
|
640
644
|
<td>
|
641
645
|
<pre class="code"><span class="info file"># File 'lib/ui_bibz/ui/ux/table/table_panel.rb', line 106</span>
|
@@ -646,9 +650,13 @@ end.render</code></pre>
|
|
646
650
|
|
647
651
|
<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='id identifier rubyid_panel_classes'>panel_classes</span><span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_f'>f</span><span class='op'>|</span>
|
648
652
|
<span class='id identifier rubyid_form_tag'>form_tag</span><span class='lparen'>(</span><span class='id identifier rubyid_url_for'>url_for</span><span class='lparen'>(</span><span class='id identifier rubyid_url_parameters'>url_parameters</span><span class='rparen'>)</span><span class='comma'>,</span> <span class='label'>method:</span> <span class='symbol'>:get</span><span class='rparen'>)</span> <span class='kw'>do</span>
|
649
|
-
<span class='id identifier
|
653
|
+
<span class='id identifier rubyid_store'>store</span><span class='period'>.</span><span class='id identifier rubyid_parameters'>parameters</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_k'>k</span><span class='comma'>,</span><span class='id identifier rubyid_v'>v</span><span class='op'>|</span>
|
654
|
+
<span class='id identifier rubyid_concat'>concat</span> <span class='id identifier rubyid_tag'>tag</span><span class='lparen'>(</span><span class='symbol'>:input</span><span class='comma'>,</span> <span class='label'>type:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>hidden</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='label'>name:</span> <span class='id identifier rubyid_k'>k</span><span class='comma'>,</span> <span class='label'>value:</span> <span class='id identifier rubyid_v'>v</span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='op'>!</span><span class='id identifier rubyid_default_parameters?'>default_parameters?</span><span class='lparen'>(</span><span class='id identifier rubyid_k'>k</span><span class='rparen'>)</span> <span class='op'>&&</span> <span class='op'>!</span><span class='id identifier rubyid_v'>v</span><span class='period'>.</span><span class='id identifier rubyid_blank?'>blank?</span>
|
655
|
+
<span class='kw'>end</span>
|
656
|
+
<span class='id identifier rubyid_concat'>concat</span> <span class='id identifier rubyid_tag'>tag</span><span class='lparen'>(</span><span class='symbol'>:input</span><span class='comma'>,</span> <span class='label'>type:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>hidden</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='label'>name:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>store_id</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='label'>value:</span> <span class='id identifier rubyid_store'>store</span><span class='period'>.</span><span class='id identifier rubyid_id'>id</span><span class='rparen'>)</span> <span class='kw'>unless</span> <span class='id identifier rubyid_store'>store</span><span class='period'>.</span><span class='id identifier rubyid_id'>id</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span> <span class='comment'># if there is more one table in html page
|
657
|
+
</span> <span class='id identifier rubyid_concat'>concat</span><span class='lparen'>(</span><span class='id identifier rubyid_header_html'>header_html</span><span class='rparen'>)</span> <span class='kw'>unless</span> <span class='ivar'>@header</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
650
658
|
<span class='id identifier rubyid_concat'>concat</span><span class='lparen'>(</span><span class='id identifier rubyid_body_html'>body_html</span><span class='rparen'>)</span> <span class='kw'>unless</span> <span class='ivar'>@body</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
651
|
-
<span class='id identifier rubyid_concat'>concat</span><span class='lparen'>(</span><span class='id identifier rubyid_table_html'>table_html</span><span class='rparen'>)</span> <span class='kw'>unless</span> <span class='
|
659
|
+
<span class='id identifier rubyid_concat'>concat</span><span class='lparen'>(</span><span class='id identifier rubyid_table_html'>table_html</span><span class='rparen'>)</span> <span class='kw'>unless</span> <span class='id identifier rubyid_store'>store</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
652
660
|
<span class='id identifier rubyid_concat'>concat</span><span class='lparen'>(</span><span class='id identifier rubyid_footer_html'>footer_html</span><span class='rparen'>)</span> <span class='kw'>unless</span> <span class='ivar'>@footer</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
653
661
|
<span class='kw'>end</span>
|
654
662
|
<span class='kw'>end</span>
|
@@ -663,9 +671,9 @@ end.render</code></pre>
|
|
663
671
|
</div>
|
664
672
|
|
665
673
|
<div id="footer">
|
666
|
-
Generated on
|
674
|
+
Generated on Mon Oct 19 15:25:15 2015 by
|
667
675
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
668
|
-
0.8.7.6 (ruby-
|
676
|
+
0.8.7.6 (ruby-2.2.3).
|
669
677
|
</div>
|
670
678
|
|
671
679
|
</body>
|
@@ -278,8 +278,8 @@
|
|
278
278
|
|
279
279
|
<span class='kw'>def</span> <span class='id identifier rubyid_render'>render</span>
|
280
280
|
<span class='kw'>if</span> <span class='ivar'>@search_field</span><span class='period'>.</span><span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:wrap_form</span><span class='rbracket'>]</span> <span class='op'>!=</span> <span class='kw'>false</span>
|
281
|
-
<span class='id identifier rubyid_form_tag'>form_tag</span><span class='lparen'>(</span><span class='id identifier rubyid_url_for'>url_for</span><span class='lparen'>(</span><span class='id identifier rubyid_url_parameters'>url_parameters</span><span class='rparen'>)</span><span class='comma'>,</span> <span class='label'>method:</span> <span class='symbol'>:get</span><span class='comma'>,</span> <span class='label'>class:</span> <span class='tstring'><span class='tstring_beg'
|
282
|
-
<span class='id identifier
|
281
|
+
<span class='id identifier rubyid_form_tag'>form_tag</span><span class='lparen'>(</span><span class='id identifier rubyid_url_for'>url_for</span><span class='lparen'>(</span><span class='id identifier rubyid_url_parameters'>url_parameters</span><span class='rparen'>)</span><span class='comma'>,</span> <span class='label'>method:</span> <span class='symbol'>:get</span><span class='comma'>,</span> <span class='label'>class:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>form-table-search-field</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span> <span class='kw'>do</span>
|
282
|
+
<span class='id identifier rubyid_search_field_html_in_wrap'>search_field_html_in_wrap</span>
|
283
283
|
<span class='kw'>end</span>
|
284
284
|
<span class='kw'>else</span>
|
285
285
|
<span class='id identifier rubyid_search_field_html'>search_field_html</span>
|
@@ -295,9 +295,9 @@
|
|
295
295
|
</div>
|
296
296
|
|
297
297
|
<div id="footer">
|
298
|
-
Generated on
|
298
|
+
Generated on Mon Oct 19 15:25:16 2015 by
|
299
299
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
300
|
-
0.8.7.6 (ruby-
|
300
|
+
0.8.7.6 (ruby-2.2.3).
|
301
301
|
</div>
|
302
302
|
|
303
303
|
</body>
|
data/doc/UiBibz/Ui/Ux.html
CHANGED
@@ -80,7 +80,7 @@
|
|
80
80
|
|
81
81
|
<dt class="r1 last">Defined in:</dt>
|
82
82
|
<dd class="r1 last">lib/ui_bibz.rb<span class="defines">,<br />
|
83
|
-
lib/ui_bibz/ui/ux/grid.rb,<br /> lib/ui_bibz/ui/ux/table/table.rb,<br /> lib/ui_bibz/ui/ux/table/table_panel.rb,<br /> lib/ui_bibz/ui/ux/table/
|
83
|
+
lib/ui_bibz/ui/ux/grid.rb,<br /> lib/ui_bibz/ui/ux/table/table.rb,<br /> lib/ui_bibz/ui/ux/table/table_panel.rb,<br /> lib/ui_bibz/ui/ux/table/components/store.rb,<br /> lib/ui_bibz/ui/ux/table/table_pagination.rb,<br /> lib/ui_bibz/ui/ux/table/components/column.rb,<br /> lib/ui_bibz/ui/ux/table/components/actions.rb,<br /> lib/ui_bibz/ui/ux/table/components/columns.rb,<br /> lib/ui_bibz/ui/ux/table/table_search_field.rb,<br /> lib/ui_bibz/ui/ux/table/extensions/sortable.rb,<br /> lib/ui_bibz/ui/ux/table/extensions/paginable.rb,<br /> lib/ui_bibz/ui/ux/table/extensions/actionable.rb,<br /> lib/ui_bibz/ui/ux/table/extensions/searchable.rb,<br /> lib/ui_bibz/ui/ux/table/table_pagination_per_page.rb</span>
|
84
84
|
</dd>
|
85
85
|
|
86
86
|
</dl>
|
@@ -119,9 +119,9 @@
|
|
119
119
|
</div>
|
120
120
|
|
121
121
|
<div id="footer">
|
122
|
-
Generated on
|
122
|
+
Generated on Mon Oct 19 15:25:14 2015 by
|
123
123
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
124
|
-
0.8.7.6 (ruby-
|
124
|
+
0.8.7.6 (ruby-2.2.3).
|
125
125
|
</div>
|
126
126
|
|
127
127
|
</body>
|
data/doc/UiBibz/Ui.html
CHANGED
@@ -110,9 +110,9 @@
|
|
110
110
|
</div>
|
111
111
|
|
112
112
|
<div id="footer">
|
113
|
-
Generated on
|
113
|
+
Generated on Mon Oct 19 15:25:14 2015 by
|
114
114
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
115
|
-
0.8.7.6 (ruby-
|
115
|
+
0.8.7.6 (ruby-2.2.3).
|
116
116
|
</div>
|
117
117
|
|
118
118
|
</body>
|
@@ -253,9 +253,9 @@
|
|
253
253
|
</div>
|
254
254
|
|
255
255
|
<div id="footer">
|
256
|
-
Generated on
|
256
|
+
Generated on Mon Oct 19 15:25:15 2015 by
|
257
257
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
258
|
-
0.8.7.6 (ruby-
|
258
|
+
0.8.7.6 (ruby-2.2.3).
|
259
259
|
</div>
|
260
260
|
|
261
261
|
</body>
|
data/doc/UiBibz/Utils.html
CHANGED
@@ -106,9 +106,9 @@
|
|
106
106
|
</div>
|
107
107
|
|
108
108
|
<div id="footer">
|
109
|
-
Generated on
|
109
|
+
Generated on Mon Oct 19 15:25:14 2015 by
|
110
110
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
111
|
-
0.8.7.6 (ruby-
|
111
|
+
0.8.7.6 (ruby-2.2.3).
|
112
112
|
</div>
|
113
113
|
|
114
114
|
</body>
|
data/doc/UiBibz.html
CHANGED
@@ -104,7 +104,7 @@
|
|
104
104
|
<dt id="VERSION-constant" class="">VERSION =
|
105
105
|
|
106
106
|
</dt>
|
107
|
-
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>1.2.
|
107
|
+
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>1.2.3</span><span class='tstring_end'>"</span></span></pre></dd>
|
108
108
|
|
109
109
|
</dl>
|
110
110
|
|
@@ -120,9 +120,9 @@
|
|
120
120
|
</div>
|
121
121
|
|
122
122
|
<div id="footer">
|
123
|
-
Generated on
|
123
|
+
Generated on Mon Oct 19 15:25:14 2015 by
|
124
124
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
125
|
-
0.8.7.6 (ruby-
|
125
|
+
0.8.7.6 (ruby-2.2.3).
|
126
126
|
</div>
|
127
127
|
|
128
128
|
</body>
|
data/doc/_index.html
CHANGED
@@ -550,16 +550,16 @@
|
|
550
550
|
<ul>
|
551
551
|
|
552
552
|
<li>
|
553
|
-
<span class='object_link'><a href="UiBibz/
|
553
|
+
<span class='object_link'><a href="UiBibz/Ui/Ux/Searchable.html" title="UiBibz::Ui::Ux::Searchable (class)">Searchable</a></span>
|
554
554
|
|
555
|
-
<small>(UiBibz::
|
555
|
+
<small>(UiBibz::Ui::Ux)</small>
|
556
556
|
|
557
557
|
</li>
|
558
558
|
|
559
559
|
<li>
|
560
|
-
<span class='object_link'><a href="UiBibz/
|
560
|
+
<span class='object_link'><a href="UiBibz/Concerns/Models/Searchable.html" title="UiBibz::Concerns::Models::Searchable (module)">Searchable</a></span>
|
561
561
|
|
562
|
-
<small>(UiBibz::
|
562
|
+
<small>(UiBibz::Concerns::Models)</small>
|
563
563
|
|
564
564
|
</li>
|
565
565
|
|
@@ -697,9 +697,9 @@
|
|
697
697
|
</div>
|
698
698
|
|
699
699
|
<div id="footer">
|
700
|
-
Generated on
|
700
|
+
Generated on Mon Oct 19 15:25:02 2015 by
|
701
701
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
702
|
-
0.8.7.6 (ruby-
|
702
|
+
0.8.7.6 (ruby-2.2.3).
|
703
703
|
</div>
|
704
704
|
|
705
705
|
</body>
|