Module: Kolo::Icons
- Defined in:
- lib/kolo/icons.rb
Instance Method Summary collapse
- #add_icon(extra_classes = '') ⇒ Object
- #basket_icon(extra_classes = '') ⇒ Object
- #csv_icon(extra_classes = '') ⇒ Object
- #deselect_all_icon(extra_classes = '') ⇒ Object
- #down_icon(extra_classes = '') ⇒ Object
- #duplicate_icon(extra_classes = '') ⇒ Object
- #edit_icon(extra_classes = '') ⇒ Object
- #export_icon(extra_classes = '') ⇒ Object
- #field_definitions_icon(extra_classes = '') ⇒ Object
- #go_icon(extra_classes = '') ⇒ Object
- #image_icon(extra_classes = '') ⇒ Object
- #left_icon(extra_classes = '') ⇒ Object
- #options_icon(extra_classes = '') ⇒ Object
- #parent_icon(extra_classes = '') ⇒ Object
- #remove_icon(extra_classes = '') ⇒ Object
- #right_icon(extra_classes = '') ⇒ Object
- #select_all_icon(extra_classes = '') ⇒ Object
- #show_icon_called(name, extra_classes = '') ⇒ Object
- #tabs_icon(extra_classes = '') ⇒ Object
- #up_icon(extra_classes = '') ⇒ Object
- #user_icon(extra_classes = '') ⇒ Object
Instance Method Details
#add_icon(extra_classes = '') ⇒ Object
7 8 9 |
# File 'lib/kolo/icons.rb', line 7 def add_icon extra_classes = '' show_icon_called 'icon-plus-sign', extra_classes end |
#basket_icon(extra_classes = '') ⇒ Object
32 33 34 |
# File 'lib/kolo/icons.rb', line 32 def basket_icon extra_classes = '' show_icon_called 'icon-shopping-cart', extra_classes end |
#csv_icon(extra_classes = '') ⇒ Object
68 69 70 |
# File 'lib/kolo/icons.rb', line 68 def csv_icon extra_classes = '' show_icon_called 'icon-list-alt', extra_classes end |
#deselect_all_icon(extra_classes = '') ⇒ Object
28 29 30 |
# File 'lib/kolo/icons.rb', line 28 def deselect_all_icon extra_classes = '' show_icon_called 'icon-remove-circle', extra_classes end |
#down_icon(extra_classes = '') ⇒ Object
84 85 86 |
# File 'lib/kolo/icons.rb', line 84 def down_icon extra_classes = '' show_icon_called 'icon-chevron-down', extra_classes end |
#duplicate_icon(extra_classes = '') ⇒ Object
52 53 54 |
# File 'lib/kolo/icons.rb', line 52 def duplicate_icon extra_classes = '' show_icon_called 'icon-retweet', extra_classes end |
#edit_icon(extra_classes = '') ⇒ Object
11 12 13 |
# File 'lib/kolo/icons.rb', line 11 def edit_icon extra_classes = '' show_icon_called 'icon-edit', extra_classes end |
#export_icon(extra_classes = '') ⇒ Object
36 37 38 |
# File 'lib/kolo/icons.rb', line 36 def export_icon extra_classes = '' show_icon_called 'icon-share', extra_classes end |
#field_definitions_icon(extra_classes = '') ⇒ Object
60 61 62 |
# File 'lib/kolo/icons.rb', line 60 def field_definitions_icon extra_classes = '' show_icon_called 'icon-tags', extra_classes end |
#go_icon(extra_classes = '') ⇒ Object
19 20 21 22 |
# File 'lib/kolo/icons.rb', line 19 def go_icon extra_classes = '' show_icon_called 'icon-play', extra_classes show_icon_called 'icon-play', extra_classes end |
#image_icon(extra_classes = '') ⇒ Object
48 49 50 |
# File 'lib/kolo/icons.rb', line 48 def image_icon extra_classes = '' show_icon_called 'icon-picture', extra_classes end |
#left_icon(extra_classes = '') ⇒ Object
72 73 74 |
# File 'lib/kolo/icons.rb', line 72 def left_icon extra_classes = '' show_icon_called 'icon-chevron-left', extra_classes end |
#options_icon(extra_classes = '') ⇒ Object
40 41 42 |
# File 'lib/kolo/icons.rb', line 40 def extra_classes = '' show_icon_called 'icon-cog', extra_classes end |
#parent_icon(extra_classes = '') ⇒ Object
44 45 46 |
# File 'lib/kolo/icons.rb', line 44 def parent_icon extra_classes = '' show_icon_called 'icon-eject', extra_classes end |
#remove_icon(extra_classes = '') ⇒ Object
15 16 17 |
# File 'lib/kolo/icons.rb', line 15 def remove_icon extra_classes = '' show_icon_called 'icon-remove-sign', extra_classes end |
#right_icon(extra_classes = '') ⇒ Object
76 77 78 |
# File 'lib/kolo/icons.rb', line 76 def right_icon extra_classes = '' show_icon_called 'icon-chevron-right', extra_classes end |
#select_all_icon(extra_classes = '') ⇒ Object
24 25 26 |
# File 'lib/kolo/icons.rb', line 24 def select_all_icon extra_classes = '' show_icon_called 'icon-ok-circle', extra_classes end |
#show_icon_called(name, extra_classes = '') ⇒ Object
3 4 5 |
# File 'lib/kolo/icons.rb', line 3 def show_icon_called name, extra_classes = '' "<i class='#{name} #{extra_classes}'></i>".html_safe end |
#tabs_icon(extra_classes = '') ⇒ Object
56 57 58 |
# File 'lib/kolo/icons.rb', line 56 def tabs_icon extra_classes = '' show_icon_called 'icon-th-list', extra_classes end |
#up_icon(extra_classes = '') ⇒ Object
80 81 82 |
# File 'lib/kolo/icons.rb', line 80 def up_icon extra_classes = '' show_icon_called 'icon-chevron-up', extra_classes end |
#user_icon(extra_classes = '') ⇒ Object
64 65 66 |
# File 'lib/kolo/icons.rb', line 64 def user_icon extra_classes = '' show_icon_called 'icon-user', extra_classes end |