lib/simple_form/helpers/autofocus.rb
# frozen_string_literal: true module SimpleForm module Helpers module Autofocus private def has_autofocus? options[:autofocus] == true end end end end
Source Files
- lib/generators/simple_form/install_generator.rb
- lib/generators/simple_form/templates/config/initializers/simple_form.rb
- lib/generators/simple_form/templates/config/initializers/simple_form_bootstrap.rb
- lib/generators/simple_form/templates/config/initializers/simple_form_foundation.rb
- lib/simple_form.rb
- lib/simple_form/action_view_extensions/builder.rb
- lib/simple_form/action_view_extensions/form_helper.rb
- lib/simple_form/components.rb
- lib/simple_form/components/errors.rb
- lib/simple_form/components/hints.rb
- lib/simple_form/components/html5.rb
- lib/simple_form/components/label_input.rb
- lib/simple_form/components/labels.rb
- lib/simple_form/components/maxlength.rb
- lib/simple_form/components/min_max.rb
- lib/simple_form/components/minlength.rb
- lib/simple_form/components/pattern.rb
- lib/simple_form/components/placeholders.rb
- lib/simple_form/components/readonly.rb
- lib/simple_form/error_notification.rb
- lib/simple_form/form_builder.rb
- lib/simple_form/helpers.rb
- lib/simple_form/helpers/autofocus.rb
- lib/simple_form/helpers/disabled.rb
- lib/simple_form/helpers/readonly.rb
- lib/simple_form/helpers/required.rb
- lib/simple_form/helpers/validators.rb
- lib/simple_form/inputs.rb
- lib/simple_form/inputs/base.rb
- lib/simple_form/inputs/block_input.rb
- lib/simple_form/inputs/boolean_input.rb
- lib/simple_form/inputs/collection_check_boxes_input.rb
- lib/simple_form/inputs/collection_input.rb
- lib/simple_form/inputs/collection_radio_buttons_input.rb
- lib/simple_form/inputs/collection_select_input.rb
- lib/simple_form/inputs/color_input.rb
- lib/simple_form/inputs/date_time_input.rb
- lib/simple_form/inputs/file_input.rb
- lib/simple_form/inputs/grouped_collection_select_input.rb
- lib/simple_form/inputs/hidden_input.rb
- lib/simple_form/inputs/numeric_input.rb
- lib/simple_form/inputs/password_input.rb
- lib/simple_form/inputs/priority_input.rb
- lib/simple_form/inputs/range_input.rb
- lib/simple_form/inputs/rich_text_area_input.rb
- lib/simple_form/inputs/string_input.rb
- lib/simple_form/inputs/text_input.rb
- lib/simple_form/map_type.rb
- lib/simple_form/railtie.rb
- lib/simple_form/tags.rb
- lib/simple_form/version.rb
- lib/simple_form/wrappers.rb
- lib/simple_form/wrappers/builder.rb
- lib/simple_form/wrappers/leaf.rb
- lib/simple_form/wrappers/many.rb
- lib/simple_form/wrappers/root.rb
- lib/simple_form/wrappers/single.rb