Sha256: 3194d7466aa8ad5ca68bb469146496c08d4ba3a2274d37fafc63b38cde4c8a35
Contents?: true
Size: 821 Bytes
Versions: 2
Compression:
Stored size: 821 Bytes
Contents
# frozen_string_literal: true class FoxTail::DialogComponent < FoxTail::SurfaceComponent renders_one :header, lambda { |options = {}, &block| options[:class] = classnames theme.apply(:header, self), options[:class] content_tag :div, options, &block } renders_one :body, lambda { |options = {}, &block| options[:class] = classnames theme.apply(:body, self), options[:class] content_tag :div, options, &block } renders_one :footer, lambda { |options = {}, &block| options[:class] = classnames theme.apply(:footer, self), options[:class] content_tag :div, options, &block } def initialize(html_attributes = {}) html_attributes[:border] = false unless html_attributes.key? :border super(html_attributes) end def hover? false end def tag_name :div end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fox_tail-0.1.1 | app/components/fox_tail/dialog_component.rb |
fox_tail-0.1.0 | app/components/fox_tail/dialog_component.rb |