Method: Playbook::PbSelect::Select#disabled_options

Defined in:
app/pb_kits/playbook/pb_select/select.rb

#disabled_optionsObject



79
80
81
82
83
84
85
86
# File 'app/pb_kits/playbook/pb_select/select.rb', line 79

def disabled_options
  disabled_options = options.map { |option| option[:value] if option[:disabled] == true }.compact
  if disabled_options.empty?
    nil
  else
    disabled_options
  end
end