module UiBibz::Helpers::Ui::UxHelper

Public Instance Methods

ui_glyph_and_text(glyph_args, text) click to toggle source

Glyph and Text method

Merge glyph and text with html_safe

# 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) click to toggle source
# 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) click to toggle source

Table Component

options (Hash) html_options (Hash)

# 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) click to toggle source

Table Pagination Component

options (Hash) [Required] html_options (Hash)

# 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) click to toggle source

Table Pagination Component

options (Hash) [Required] html_options (Hash)

# 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) click to toggle source

Table Pagination Per Page Component

options (Hash) [Required] html_options (Hash)

# 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) click to toggle source

Table Search Field Component

options (Hash) [Required] html_options (Hash)

# 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