2024-05-06 18:09:44 +02:00
|
|
|
class EditableChamp::AnnuaireEducationComponent < EditableChamp::EditableChampBaseComponent
|
2023-08-21 16:18:31 +02:00
|
|
|
def dsfr_input_classname
|
2024-05-06 18:09:44 +02:00
|
|
|
'fr-select'
|
2023-08-21 16:18:31 +02:00
|
|
|
end
|
2024-04-12 07:57:27 +02:00
|
|
|
|
2024-05-06 18:09:44 +02:00
|
|
|
def react_props
|
|
|
|
react_input_opts(id: @champ.input_id,
|
|
|
|
class: "fr-mt-1w",
|
|
|
|
name: @form.field_name(:external_id),
|
|
|
|
selected_key: @champ.external_id,
|
|
|
|
items: @champ.selected_items,
|
|
|
|
loader: data_sources_data_source_education_path,
|
|
|
|
minimum_input_length: 3)
|
2024-04-12 07:57:27 +02:00
|
|
|
end
|
2022-08-12 10:45:04 +02:00
|
|
|
end
|