Sha256: 7e096a33b8aaa1fcf4ea4458e854755c6328ee8e8f67dac7d36669fe06b043e1

Contents?: true

Size: 383 Bytes

Versions: 116

Compression:

Stored size: 383 Bytes

Contents

module Avo
  module Resources
    module Controls
      class EditButton < BaseControl
        def initialize(**args)
          super(**args)

          @label = args[:label] || I18n.t("avo.edit").capitalize
          if args[:item].present?
            @title = I18n.t("avo.edit_item", item: args[:item]).humanize if title.nil?
          end
        end
      end
    end
  end
end

Version data entries

116 entries across 116 versions & 1 rubygems

Version Path
avo-3.2.0 lib/avo/resources/controls/edit_button.rb
avo-3.1.7 lib/avo/resources/controls/edit_button.rb
avo-3.1.6 lib/avo/resources/controls/edit_button.rb
avo-3.1.5 lib/avo/resources/controls/edit_button.rb
avo-3.1.4 lib/avo/resources/controls/edit_button.rb
avo-3.1.3 lib/avo/resources/controls/edit_button.rb
avo-3.1.2 lib/avo/resources/controls/edit_button.rb
avo-3.1.1 lib/avo/resources/controls/edit_button.rb
avo-3.1.0 lib/avo/resources/controls/edit_button.rb
avo-3.0.8 lib/avo/resources/controls/edit_button.rb
avo-3.0.7 lib/avo/resources/controls/edit_button.rb
avo-3.0.6 lib/avo/resources/controls/edit_button.rb
avo-3.0.5 lib/avo/resources/controls/edit_button.rb
avo-3.0.4 lib/avo/resources/controls/edit_button.rb
avo-3.0.3 lib/avo/resources/controls/edit_button.rb
avo-3.0.2 lib/avo/resources/controls/edit_button.rb