Sha256: 95bf5242ec1fd4d8893af1e9e7db615e5533dcba5f973423561596636830cc1b
Contents?: true
Size: 491 Bytes
Versions: 2
Compression:
Stored size: 491 Bytes
Contents
require 'tao_on_rails/components/base' 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
tao_ui-0.2.6 | lib/tao_ui/components/slide_box_component.rb |
tao_ui-0.2.5 | lib/tao_ui/components/slide_box_component.rb |