Class: Playbook::PbFilter::Filter
- Inherits:
-
Object
- Object
- Playbook::PbFilter::Filter
show all
- Includes:
- Playbook::Props
- Defined in:
- app/pb_kits/playbook/pb_filter/filter.rb
Instance Method Summary
collapse
#dark_props, #generate_classname, #generate_classname_without_spacing, #initialize, #prop, #spacing_options, #spacing_props, #spacing_values
Instance Method Details
#classname ⇒ Object
18
19
20
|
# File 'app/pb_kits/playbook/pb_filter/filter.rb', line 18
def classname
generate_classname("pb_filter_kit")
end
|
#result_text ⇒ Object
22
23
24
25
26
27
28
29
30
31
|
# File 'app/pb_kits/playbook/pb_filter/filter.rb', line 22
def result_text
case results
when 1
"#{results} Result"
when nil
nil
else
"#{results} Results"
end
end
|
#sort_icon(direction) ⇒ Object
33
34
35
36
37
38
39
40
41
42
|
# File 'app/pb_kits/playbook/pb_filter/filter.rb', line 33
def sort_icon(direction)
case direction
when "asc"
"sort-amount-up"
when "desc"
"sort-amount-down"
else
""
end
end
|