Sha256: 7e496388b6e7945273083e923a9ab86814d4d6cfa2d70924f228575faffc9f56

Contents?: true

Size: 399 Bytes

Versions: 22

Compression:

Stored size: 399 Bytes

Contents

module Plugins
  module Core
    class TagCell < Plugins::Core::Cell
      def tag_picker
        render
      end

      private

      def value
        data&.[]('tag_list') || @options[:default_value]
      end

      def render_tag_field
        @options[:form].text_field 'data[tag_list]', value: value, placeholder: @options[:placeholder], 'data-role'=>'tagsinput'
      end
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
cortex-plugins-core-0.10.2 app/cells/plugins/core/tag_cell.rb
cortex-plugins-core-0.10.1 app/cells/plugins/core/tag_cell.rb
cortex-plugins-core-0.10.0 app/cells/plugins/core/tag_cell.rb
cortex-plugins-core-0.9.1 app/cells/plugins/core/tag_cell.rb
cortex-plugins-core-0.9.0 app/cells/plugins/core/tag_cell.rb
cortex-plugins-core-0.8.0 app/cells/plugins/core/tag_cell.rb
cortex-plugins-core-0.7.2 app/cells/plugins/core/tag_cell.rb
cortex-plugins-core-0.7.1 app/cells/plugins/core/tag_cell.rb
cortex-plugins-core-0.7.0 app/cells/plugins/core/tag_cell.rb
cortex-plugins-core-0.6.0 app/cells/plugins/core/tag_cell.rb
cortex-plugins-core-0.5.0 app/cells/plugins/core/tag_cell.rb
cortex-plugins-core-0.4.8 app/cells/plugins/core/tag_cell.rb
cortex-plugins-core-0.4.7 app/cells/plugins/core/tag_cell.rb
cortex-plugins-core-0.4.6 app/cells/plugins/core/tag_cell.rb
cortex-plugins-core-0.4.5 app/cells/plugins/core/tag_cell.rb
cortex-plugins-core-0.4.4 app/cells/plugins/core/tag_cell.rb
cortex-plugins-core-0.4.3 app/cells/plugins/core/tag_cell.rb
cortex-plugins-core-0.4.2 app/cells/plugins/core/tag_cell.rb
cortex-plugins-core-0.4.1 app/cells/plugins/core/tag_cell.rb
cortex-plugins-core-0.4.0 app/cells/plugins/core/tag_cell.rb