Sha256: b63c2f3a6d027082c8ec000dd8e628cccb47b555a35a827017fa819b5cbd732b
Contents?: true
Size: 366 Bytes
Versions: 2
Compression:
Stored size: 366 Bytes
Contents
module UiBibz::Ui class TableAction < Component DIVIDER = '---' def initialize content = nil, options = nil, html_options = nil, &block super end def render @content == DIVIDER ? DIVIDER : link_html end private def link_html link_to glyph_and_content_html, @options[:url], class_and_html_options end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ui_bibz-1.0.0 | lib/ui_bibz/ui/table/components/table_action.rb |
ui_bibz-0.9.0 | lib/ui_bibz/ui/table/components/table_action.rb |