Sha256: 08df58d1aa242c69e1faa416863ac021d7136fc64981fdd43e14a7a5c666e3dd

Contents?: true

Size: 314 Bytes

Versions: 32

Compression:

Stored size: 314 Bytes

Contents

# frozen_string_literal: true

module Phlexi
  module Form
    module Components
      class Hint < Base
        def view_template
          p(**attributes) do
            field.hint
          end
        end

        private

        def render?
          field.show_hint?
        end
      end
    end
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
phlexi-form-0.8.3 lib/phlexi/form/components/hint.rb
phlexi-form-0.8.2 lib/phlexi/form/components/hint.rb
phlexi-form-0.8.1 lib/phlexi/form/components/hint.rb
phlexi-form-0.8.0 lib/phlexi/form/components/hint.rb
phlexi-form-0.7.2 lib/phlexi/form/components/hint.rb
phlexi-form-0.7.1 lib/phlexi/form/components/hint.rb
phlexi-form-0.7.0 lib/phlexi/form/components/hint.rb
phlexi-form-0.6.2 lib/phlexi/form/components/hint.rb
phlexi-form-0.6.1 lib/phlexi/form/components/hint.rb
phlexi-form-0.6.0 lib/phlexi/form/components/hint.rb
phlexi-form-0.5.11 lib/phlexi/form/components/hint.rb
phlexi-form-0.5.10 lib/phlexi/form/components/hint.rb
phlexi-form-0.5.9 lib/phlexi/form/components/hint.rb
phlexi-form-0.5.8 lib/phlexi/form/components/hint.rb
phlexi-form-0.5.7 lib/phlexi/form/components/hint.rb
phlexi-form-0.5.6 lib/phlexi/form/components/hint.rb
phlexi-form-0.5.5 lib/phlexi/form/components/hint.rb
phlexi-form-0.5.4 lib/phlexi/form/components/hint.rb
phlexi-form-0.5.3 lib/phlexi/form/components/hint.rb
phlexi-form-0.5.2 lib/phlexi/form/components/hint.rb