Sha256: a32daaa01ded5b6c925f7fb4953f19bb7f28ea848e0b638738bef2b24e61bb51

Contents?: true

Size: 672 Bytes

Versions: 7

Compression:

Stored size: 672 Bytes

Contents

module LatoCore

  class Inputs::Sortableblock::Cell < Cell

    @@requested_args = [:name]

    @@default_args = {
      label: '',
      placeholder: '',
      help: '',
      disabled: false,
      components: [],
      class: 'md-12'
    }

    def initialize(args = {})
      @args = validate_args(
        args: args,
        requested_args: @@requested_args,
        default_args: @@default_args
      )

      set_conditions
    end

    def show
      render 'show.html'
    end

    private

    def set_conditions
      @show_label = !@args[:label].nil? && !@args[:label].blank?
      @show_help = !@args[:help].nil? && !@args[:help].blank?
    end

  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
lato_core-2.2.2 app/cells/lato_core/inputs/sortableblock/cell.rb
lato_core-2.2.0 app/cells/lato_core/inputs/sortableblock/cell.rb
lato_core-2.1.4 app/cells/lato_core/inputs/sortableblock/cell.rb
lato_core-2.1.3 app/cells/lato_core/inputs/sortableblock/cell.rb
lato_core-2.1.2 app/cells/lato_core/inputs/sortableblock/cell.rb
lato_core-2.1.1 app/cells/lato_core/inputs/sortableblock/cell.rb
lato_core-2.1 app/cells/lato_core/inputs/sortableblock/cell.rb