Sha256: a3b80ade79aec26ccebbf62a5071db904c8c7d7b274da725aeacaa7cfbf6c50e

Contents?: true

Size: 843 Bytes

Versions: 24

Compression:

Stored size: 843 Bytes

Contents

module Locomotive
  class EditableTextPresenter < EditableElementPresenter

    ## properties ##
    properties :content, :default_content
    properties :format, :line_break, :rows, only_getter: true

    ## callbacks ##

    set_callback :set_attributes, :after, :set_default_content

    ## other getters / setters ##

    def default_content=(value)
      @default_content = value
    end

    ## methods ##

    protected

    def set_default_content
      # if the default content was not explicitly set, set it to false
      self.__source.default_content = @default_content.nil? ? false : @default_content
    end

  end
end

module Locomotive
  class EditableShortTextPresenter < EditableTextPresenter
    # @deprecated
  end
end

module Locomotive
  class EditableLongTextPresenter < EditableTextPresenter
    # @deprecated
  end
end

Version data entries

24 entries across 24 versions & 2 rubygems

Version Path
locomotivecms-3.0.0.pre.alpha.3 app/presenters/locomotive/editable_text_presenter.rb
locomotive_cms-2.5.7 app/presenters/locomotive/editable_text_presenter.rb
locomotivecms-3.0.0.pre.alpha.2 app/presenters/locomotive/editable_text_presenter.rb
locomotivecms-3.0.0.pre.alpha app/presenters/locomotive/editable_text_presenter.rb
locomotive_cms-2.5.6 app/presenters/locomotive/editable_text_presenter.rb
locomotive_cms-2.5.6.rc2 app/presenters/locomotive/editable_text_presenter.rb
locomotive_cms-2.5.6.rc1 app/presenters/locomotive/editable_text_presenter.rb
locomotive_cms-2.5.5 app/presenters/locomotive/editable_text_presenter.rb
locomotive_cms-2.5.4 app/presenters/locomotive/editable_text_presenter.rb
locomotive_cms-2.5.3 app/presenters/locomotive/editable_text_presenter.rb
locomotive_cms-2.5.2 app/presenters/locomotive/editable_text_presenter.rb
locomotive_cms-2.5.1 app/presenters/locomotive/editable_text_presenter.rb
locomotive_cms-2.5.0 app/presenters/locomotive/editable_text_presenter.rb
locomotive_cms-2.5.0.rc3 app/presenters/locomotive/editable_text_presenter.rb
locomotive_cms-2.5.0.rc2 app/presenters/locomotive/editable_text_presenter.rb
locomotive_cms-2.5.0.rc1 app/presenters/locomotive/editable_text_presenter.rb
locomotive_cms-2.4.1 app/presenters/locomotive/editable_text_presenter.rb
locomotive_cms-2.4.0 app/presenters/locomotive/editable_text_presenter.rb
locomotive_cms-2.3.1 app/presenters/locomotive/editable_text_presenter.rb
locomotive_cms-2.3.0 app/presenters/locomotive/editable_text_presenter.rb