Class: PropertyGrid::PropertyGridTypes

Inherits:
Object
  • Object
show all
Defined in:
lib/property_grid.rb

Class Method Summary collapse

Class Method Details

.get_property_type_mapObject



5
6
7
8
9
10
11
12
13
14
15
16
17
18
# File 'lib/property_grid.rb', line 5

def self.get_property_type_map
  {
      string: ControlType.new('text_field'),
      text: ControlType.new('text_area'),
      boolean: ControlType.new('check_box'),
      password: ControlType.new('password_field'),
      date: ControlType.new('datepicker'),
      datetime: ControlType.new('text_field', 'jq_dateTimePicker'),
      time: ControlType.new('text_field', 'jq_timePicker'),
      color: ControlType.new('text_field', 'jq_colorPicker'),
      list: ControlType.new('select'),
      db_list: ControlType.new('select')
  }
end