Sha256: 36bdb15fadb6463ed17e0226d77c53296bd1780508c2d7c703c2298d534ae78d
Contents?: true
Size: 441 Bytes
Versions: 6
Compression:
Stored size: 441 Bytes
Contents
class TabbedContentTabWidget < Widget attribute :title, :string, default: 'New Tab' attribute :content, :widgetlist attribute :background_color, :string def self.valid_container_classes [TabbedContentWidget] end def self.description_for_editor 'Tab' end def classes(index) css = ["scrivito-tab-title"] css << "scrivito-tab-active" if index == 0 css << self.background_color css.join(" ") end end
Version data entries
6 entries across 6 versions & 1 rubygems