Sha256: e400231aafca5922ecbff05d516b62ee8dd6d752a04090328f35aea5994b3f46

Contents?: true

Size: 499 Bytes

Versions: 12

Compression:

Stored size: 499 Bytes

Contents

module TaoUi
  module Components
    class ConfirmDialogComponent < MessageDialogComponent

      attr_reader :cancel_text

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

      def self.component_name
        :confirm_dialog
      end

      private

      def default_options
        {class: 'tao-dialog tao-confirm-dialog', with_close_button: false}
      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_dialog_component.rb
tao_ui-0.3.4 lib/tao_ui/components/confirm_dialog_component.rb
tao_ui-0.3.3 lib/tao_ui/components/confirm_dialog_component.rb
tao_ui-0.3.2 lib/tao_ui/components/confirm_dialog_component.rb
tao_ui-0.3.1 lib/tao_ui/components/confirm_dialog_component.rb
tao_ui-0.3.0 lib/tao_ui/components/confirm_dialog_component.rb
tao_ui-0.2.10 lib/tao_ui/components/confirm_dialog_component.rb
tao_ui-0.2.9 lib/tao_ui/components/confirm_dialog_component.rb
tao_ui-0.2.8 lib/tao_ui/components/confirm_dialog_component.rb
tao_ui-0.2.7 lib/tao_ui/components/confirm_dialog_component.rb
tao_ui-0.2.6 lib/tao_ui/components/confirm_dialog_component.rb
tao_ui-0.2.5 lib/tao_ui/components/confirm_dialog_component.rb