Sha256: bd96ecdc1128a2032c6f34b96081515357eb8a98c92c0fd56f13df30d0ca7c11

Contents?: true

Size: 639 Bytes

Versions: 3

Compression:

Stored size: 639 Bytes

Contents

module LatoView
  class Component::Form::Cell < Cell

    attr_accessor :url, :method, :remote, :multipart, :custom_class

    def initialize(url: '', method: :post, remote: false, multipart: false, custom_class: '')
     # save params
      @url = url
      @method = method
      @remote = remote
      @multipart = multipart
      @custom_class = custom_class
      # check params
      check_params
    end

    def show
      render 'show.html'
    end

    def open
      render 'open.html'
    end

    def close
      '</form>'
    end

    # check params
    private def check_params
      # TODO: Check values
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
lato_view-1.1.5 app/cells/lato_view/component/form/cell.rb
lato_view-1.1.4 app/cells/lato_view/component/form/cell.rb
lato_view-1.1.3 app/cells/lato_view/component/form/cell.rb