Skip to content

Commit d954048

Browse files
committed
Document accepted option
1 parent 8d20960 commit d954048

File tree

1 file changed

+1
-0
lines changed
  • admin/app/components/solidus_admin/ui/forms/select

1 file changed

+1
-0
lines changed

admin/app/components/solidus_admin/ui/forms/select/component.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ class SolidusAdmin::UI::Forms::Select::Component < SolidusAdmin::BaseComponent
3131
# (see `ActionView::Helpers::FormOptionsHelper#options_for_select`).
3232
# When +:src+ parameter is provided, use +:choices+ to provide the list of selected options only.
3333
# @param src [nil, String] URL of a JSON resource with options data to be loaded instead of rendering options in place.
34+
# @option attributes [nil, String, Integer, Array<String, Integer>] :value which option should be selected
3435
# @option attributes [String] :"data-option-value-field"
3536
# @option attributes [String] :"data-option-label-field" when +:src+ param is passed, value and label of loaded options
3637
# will be mapped to JSON response +"id"+ and +"name"+ by default. Use these parameters to map to different keys.

0 commit comments

Comments
 (0)