Sha256: 0fb70c341f552bf07be981eeb202c041d5d76c3b74585e4296ffdf5fdb170b4c

Contents?: true

Size: 589 Bytes

Versions: 12

Compression:

Stored size: 589 Bytes

Contents

module TaoUi
  module Components
    class ConfirmPopoverComponent < PopoverComponent

      attr_reader :confirm_text, :cancel_text

      def initialize view, options
        super view, options
        @confirm_text = @options[:confirm_text] || I18n.t('tao_ui.components.dialog.confirm')
        @cancel_text = @options[:cancel_text] || I18n.t('tao_ui.components.dialog.cancel')
      end

      def self.component_name
        :confirm_popover
      end

      private

      def default_options
        merge_options super, {class: 'tao-confirm-popover'}
      end

    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
tao_ui-1.0.0.beta.1 lib/tao_ui/components/confirm_popover_component.rb
tao_ui-0.3.4 lib/tao_ui/components/confirm_popover_component.rb
tao_ui-0.3.3 lib/tao_ui/components/confirm_popover_component.rb
tao_ui-0.3.2 lib/tao_ui/components/confirm_popover_component.rb
tao_ui-0.3.1 lib/tao_ui/components/confirm_popover_component.rb
tao_ui-0.3.0 lib/tao_ui/components/confirm_popover_component.rb
tao_ui-0.2.10 lib/tao_ui/components/confirm_popover_component.rb
tao_ui-0.2.9 lib/tao_ui/components/confirm_popover_component.rb
tao_ui-0.2.8 lib/tao_ui/components/confirm_popover_component.rb
tao_ui-0.2.7 lib/tao_ui/components/confirm_popover_component.rb
tao_ui-0.2.6 lib/tao_ui/components/confirm_popover_component.rb
tao_ui-0.2.5 lib/tao_ui/components/confirm_popover_component.rb