Sha256: 40d283158d93f399d0d02f01ce07ab055459bec275063a763007417980b6eaa3

Contents?: true

Size: 443 Bytes

Versions: 12

Compression:

Stored size: 443 Bytes

Contents

module TaoUi
  module Components
    class DialogComponent < TaoOnRails::Components::Base

      def initialize view, options
        super view, options

        unless @options[:with_close_button].in? [true, false]
          @options[:with_close_button] = true
        end
      end

      def self.component_name
        :dialog
      end

      private

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