Sha256: 55958891517148064e1a8620ddc79ddb192b637096a62b9f4c825fce85268430

Contents?: true

Size: 392 Bytes

Versions: 4

Compression:

Stored size: 392 Bytes

Contents

require 'tao_on_rails/components/base'

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

      def initialize view, options
        super

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

      def self.component_name
        :slide_box
      end

    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
tao_ui-0.2.3 lib/tao_ui/components/slide_box_component.rb
tao_ui-0.2.2 lib/tao_ui/components/slide_box_component.rb
tao_ui-0.2.1 lib/tao_ui/components/slide_box_component.rb
tao_ui-0.2.0 lib/tao_ui/components/slide_box_component.rb