Class: Playbook::PbProgressPills::ProgressPills
- Inherits:
-
Object
- Object
- Playbook::PbProgressPills::ProgressPills
show all
- Includes:
- Playbook::Props
- Defined in:
- app/pb_kits/playbook/pb_progress_pills/progress_pills.rb
Instance Method Summary
collapse
#dark_props, #generate_classname, #generate_classname_without_spacing, #initialize, #prop, #spacing_options, #spacing_props, #spacing_values
Instance Method Details
#active_step(step) ⇒ Object
29
30
31
|
# File 'app/pb_kits/playbook/pb_progress_pills/progress_pills.rb', line 29
def active_step(step)
step <= active ? "_active" : "_inactive"
end
|
#classname ⇒ Object
17
18
19
|
# File 'app/pb_kits/playbook/pb_progress_pills/progress_pills.rb', line 17
def classname
generate_classname("pb_progress_pills_kit")
end
|
#dark_pill ⇒ Object
33
34
35
|
# File 'app/pb_kits/playbook/pb_progress_pills/progress_pills.rb', line 33
def dark_pill
dark ? " dark" : nil
end
|
#each_step(&block) ⇒ Object
25
26
27
|
# File 'app/pb_kits/playbook/pb_progress_pills/progress_pills.rb', line 25
def each_step(&block)
1.upto(steps, &block)
end
|
#with_status {|title| ... } ⇒ Object
21
22
23
|
# File 'app/pb_kits/playbook/pb_progress_pills/progress_pills.rb', line 21
def with_status
yield title if title.present?
end
|