Sha256: e7b9b1b0d4e579e8b293c98679c06ea8f8a6c3fcca56dae19b4f51421bcd73f5

Contents?: true

Size: 815 Bytes

Versions: 3

Compression:

Stored size: 815 Bytes

Contents

module KirguduBase
	class DynamicPages::ListProperty < ::KirguduBase::DynamicPages::Property

		mergeable_attributes :sortable, :inplace_edit, :label, :output_control, :placeholder


		validates_inclusion_of :output_control, in: ::KirguduBase::DynamicPages::Enums::SUPPORTED_ENTRY_CONTROLS, allow_nil: true

		validates_inclusion_of :sortable, in: [:true, :false], allow_nil: true
		validates_inclusion_of :inplace_edit, in: [:true, :false], allow_nil: true

		def initialize(options = {})
			options ||= {}
			self.sortable = :false
			self.inplace_edit = :false
			self.label = nil
			self.output_control = nil
			self.placeholder = nil

			super(options)
		end

		attr_accessor :sortable
		attr_accessor :inplace_edit
		attr_accessor :label
		attr_accessor :output_control
		attr_accessor :placeholder

	end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
kirgudu_base-0.0.25 app/models/kirgudu_base/dynamic_pages/list_property.rb
kirgudu_base-0.0.23 app/models/kirgudu_base/dynamic_pages/list_property.rb
kirgudu_base-0.0.22 app/models/kirgudu_base/dynamic_pages/list_property.rb