getAction static method

ChartActionType getAction(
  1. String type
)

Implementation

static ChartActionType getAction(String type) {
  switch (type) {
    case 'colorpicker':
      return ChartActionType.COLORPICKER;
    case 'dropdown':
      return ChartActionType.DROPDOWN;
    case 'radio':
      return ChartActionType.RADIO;
    case 'number':
      return ChartActionType.NUMBER;
    case 'range':
      return ChartActionType.RANGE;
    case 'text':
    default:
      return ChartActionType.TEXT;
  }
}