Module: UiBibz::Helpers::Ui::UxHelper
- Defined in:
- lib/ui_bibz/helpers/ui/ux_helper.rb
Instance Method Summary collapse
-
#ui_glyph_and_text(glyph_args, text) ⇒ Object
Glyph and Text method.
- #ui_panel(content = nil, options = nil, html_options = nil, &block) ⇒ Object
-
#ui_table(content = nil, options = nil, html_options = nil, &block) ⇒ Object
Table Component.
-
#ui_table_card(content = nil, options = nil, html_options = nil, &block) ⇒ Object
Table Pagination Component.
-
#ui_table_pagination(options, html_options = nil) ⇒ Object
Table Pagination Component.
-
#ui_table_pagination_per_page(options, html_options = nil) ⇒ Object
Table Pagination Per Page Component.
-
#ui_table_search_field(options, html_options = nil) ⇒ Object
Table Search Field Component.
Instance Method Details
#ui_glyph_and_text(glyph_args, text) ⇒ Object
Glyph and Text method
Merge glyph and text with html_safe
44 45 46 |
# File 'lib/ui_bibz/helpers/ui/ux_helper.rb', line 44 def ui_glyph_and_text(glyph_args, text) "#{ui_glyph glyph_args} #{text}".html_safe end |
#ui_panel(content = nil, options = nil, html_options = nil, &block) ⇒ Object
61 62 63 |
# File 'lib/ui_bibz/helpers/ui/ux_helper.rb', line 61 def ui_panel(content = nil, = nil, = nil, &block) UiBibz::Ui::Ux::Containers::Panel.new(content, , ).tap(&block).render end |
#ui_table(content = nil, options = nil, html_options = nil, &block) ⇒ Object
Table Component
options (Hash) html_options (Hash)
9 10 11 12 13 14 15 |
# File 'lib/ui_bibz/helpers/ui/ux_helper.rb', line 9 def ui_table(content = nil, = nil, = nil, &block) if tapped?(block) UiBibz::Ui::Ux::Tables::Table.new(content, , ).tap(&block).render else UiBibz::Ui::Ux::Tables::Table.new(content, , , &block).render end end |
#ui_table_card(content = nil, options = nil, html_options = nil, &block) ⇒ Object
Table Pagination Component
options (Hash) [Required] html_options (Hash)
53 54 55 56 57 58 59 |
# File 'lib/ui_bibz/helpers/ui/ux_helper.rb', line 53 def ui_table_card(content = nil, = nil, = nil, &block) if tapped?(block) UiBibz::Ui::Ux::Tables::TableCard.new(content, , ).tap(&block).render else UiBibz::Ui::Ux::Tables::TableCard.new(content, , , &block).render end end |
#ui_table_pagination(options, html_options = nil) ⇒ Object
Table Pagination Component
options (Hash) [Required] html_options (Hash)
37 38 39 |
# File 'lib/ui_bibz/helpers/ui/ux_helper.rb', line 37 def ui_table_pagination(, = nil) UiBibz::Ui::Ux::Tables::TablePagination.new(, ).render end |
#ui_table_pagination_per_page(options, html_options = nil) ⇒ Object
Table Pagination Per Page Component
options (Hash) [Required] html_options (Hash)
29 30 31 |
# File 'lib/ui_bibz/helpers/ui/ux_helper.rb', line 29 def ui_table_pagination_per_page(, = nil) UiBibz::Ui::Ux::Tables::TablePaginationPerPage.new(, ).render end |