Module: UiBibz::Helpers::Ui::UxHelper

Defined in:
lib/ui_bibz/helpers/ui/ux_helper.rb

Instance Method Summary collapse

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, options = nil, html_options = nil, &block)
  UiBibz::Ui::Ux::Containers::Panel.new(content, options, html_options).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, options = nil, html_options = nil, &block)
  if tapped?(block)
    UiBibz::Ui::Ux::Tables::Table.new(content, options, html_options).tap(&block).render
  else
    UiBibz::Ui::Ux::Tables::Table.new(content, options, html_options, &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, options = nil, html_options = nil, &block)
  if tapped?(block)
    UiBibz::Ui::Ux::Tables::TableCard.new(content, options, html_options).tap(&block).render
  else
    UiBibz::Ui::Ux::Tables::TableCard.new(content, options, html_options, &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(options, html_options = nil)
  UiBibz::Ui::Ux::Tables::TablePagination.new(options, html_options).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(options, html_options = nil)
  UiBibz::Ui::Ux::Tables::TablePaginationPerPage.new(options, html_options).render
end

#ui_table_search_field(options, html_options = nil) ⇒ Object

Table Search Field Component

options (Hash) [Required] html_options (Hash)



21
22
23
# File 'lib/ui_bibz/helpers/ui/ux_helper.rb', line 21

def ui_table_search_field(options, html_options = nil)
  UiBibz::Ui::Ux::Tables::TableSearchField.new(options, html_options).render
end