Class: Playbook::PbMultipleUsers::MultipleUsers
- Inherits:
-
KitBase
- Object
- ViewComponent::Base
- KitBase
- Playbook::PbMultipleUsers::MultipleUsers
show all
- Defined in:
- app/pb_kits/playbook/pb_multiple_users/multiple_users.rb
Instance Method Summary
collapse
Methods inherited from KitBase
#object
Methods included from ZIndex
included
Methods included from Spacing
included, #max_width_options, #max_width_props, #max_width_values, #spacing_options, #spacing_props, #spacing_values
Methods included from Classnames
#generate_classname, #generate_classname_without_spacing, included
#initialize, #prop
#pb_rails
#pb_form_with
Instance Method Details
#classname ⇒ Object
17
18
19
|
# File 'app/pb_kits/playbook/pb_multiple_users/multiple_users.rb', line 17
def classname
generate_classname("pb_multiple_users_kit", reverse_class)
end
|
#display_count ⇒ Object
13
14
15
|
# File 'app/pb_kits/playbook/pb_multiple_users/multiple_users.rb', line 13
def display_count
more_than_four ? 3 : users.count
end
|
#more_than_four ⇒ Object
9
10
11
|
# File 'app/pb_kits/playbook/pb_multiple_users/multiple_users.rb', line 9
def more_than_four
users.count > 4
end
|