Sha256: 139f34095be3260bf9d65737948c942ee692f8845d1dcb5666df75d9c388bc1c

Contents?: true

Size: 418 Bytes

Versions: 3

Compression:

Stored size: 418 Bytes

Contents

class ElasticSliderPanelWidget < Widget
  attribute :button, :link
  attribute :content, :string
  attribute :headline, :string
  attribute :image, :reference

  def additional_classes(params)
    begin
      "active" if self.container.panels.first == self
    rescue
    end
  end

  def description_for_editor
    "Elastic Slider Panel"
  end

  def self.valid_container_classes
    [ElasticSliderWidget]
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
scrivito_elastic_slider_widget-0.66.0 app/models/elastic_slider_panel_widget.rb
scrivito_elastic_slider_widget-0.0.65 app/models/elastic_slider_panel_widget.rb
scrivito_elastic_slider_widget-0.0.60 app/models/elastic_slider_panel_widget.rb