Class: TextWidget
Class Method Summary collapse
Class Method Details
.single_text_widget(widget) ⇒ Object
13 14 15 16 17 18 19 20 |
# File 'lib/widgets/text_widget.rb', line 13 def self.() output = single_text_header(.col_size, .color) output << visual(.icon) output << details(.data.keys.first, .data.values.first) output << view_more(.link) unless .link.nil? output << single_cap output.html_safe end |
.text_widget(widget) ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/widgets/text_widget.rb', line 5 def self.() output = header(.color, .title, .row_size, .col_size) output << (.text) output << text_panel(.data, .direction) output << cap output.html_safe end |