Sha256: 8edde2228e6492a2ce5e9955408eeaf0d32ae100106d8adeed59e906b65ab1f7

Contents?: true

Size: 491 Bytes

Versions: 12

Compression:

Stored size: 491 Bytes

Contents

module KonoUtils
  module Object
    module Cell
      module Buttons # namespace
        class Create < Base

          def url_to
            options[:url_to] || new_custom_polymorphic_path(model)
          end

          def specific_button_class
            "btn-success"
          end

          def button_title
            title_new
          end

          def button_content
            options.fetch(:content, fa_icon("plus"))
          end

        end
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
kono_utils_bootstrap_view4-0.3.2 app/concepts/kono_utils/object/cell/buttons/create.rb
kono_utils_bootstrap_view4-0.3.1 app/concepts/kono_utils/object/cell/buttons/create.rb
kono_utils_bootstrap_view4-0.3 app/concepts/kono_utils/object/cell/buttons/create.rb
kono_utils_bootstrap_view4-0.2.3 app/concepts/kono_utils/object/cell/buttons/create.rb
kono_utils_bootstrap_view4-0.2.2 app/concepts/kono_utils/object/cell/buttons/create.rb
kono_utils_bootstrap_view4-0.2.1 app/concepts/kono_utils/object/cell/buttons/create.rb
kono_utils_bootstrap_view4-0.2 app/concepts/kono_utils/object/cell/buttons/create.rb
kono_utils_bootstrap_view4-0.1.2 app/concepts/kono_utils/object/cell/buttons/create.rb
kono_utils_bootstrap_view4-0.1.1 app/concepts/kono_utils/object/cell/buttons/create.rb
kono_utils_bootstrap_view4-0.1.0 app/concepts/kono_utils/object/cell/buttons/create.rb
kono_utils_bootstrap_view4-0.1.0.pre.rc.7 app/concepts/kono_utils/object/cell/buttons/create.rb
kono_utils_bootstrap_view4-0.1.0.pre.rc.4 app/concepts/kono_utils/object/cell/buttons/create.rb