Sha256: 853325e071b00c77584a9a3b2dbbfc84c7fd01027cc18df990cfb0a297df7ed8
Contents?: true
Size: 632 Bytes
Versions: 21
Compression:
Stored size: 632 Bytes
Contents
module Plugins module Core class TreeCell < Plugins::Core::Cell def checkboxes render end def dropdown render end private def value data&.[]('values') || @options[:default_value] end def render_select @options[:form].select 'data[values]', metadata_values, {selected: value} end def metadata_values values = [["-- Select an Option --", nil]] @options[:metadata]["data"]["tree_array"].map do |value| values << [value["node"]["name"], value["id"]] end values end end end end
Version data entries
21 entries across 21 versions & 1 rubygems