Multiple drop down list au DSFR

This commit is contained in:
Kara Diaby 2023-07-18 17:26:07 +02:00 committed by Martin
parent 37796b8843
commit 58bcdb406d
3 changed files with 34 additions and 5 deletions

View file

@ -43,6 +43,14 @@ class Champs::MultipleDropDownListChamp < Champ
enabled_non_empty_options.size <= THRESHOLD_NB_OPTIONS_AS_CHECKBOX
end
def html_label?
!render_as_checkboxes?
end
def single_checkbox?
render_as_checkboxes?
end
def blank?
selected_options.blank?
end