Sha256: 8c9c89380510222ca50ab0fd0601cd14fe49a5a695d0524c039bdf5a6b7f0cd8

Contents?: true

Size: 451 Bytes

Versions: 10

Compression:

Stored size: 451 Bytes

Contents

module TaoUi
  module Components
    class SlideBoxComponent < 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
        :slide_box
      end

      private

      def default_options
        {class: 'tao-slide-box'}
      end

    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

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