Skip to main content
Version: v4

Element Entity

This is the base class for every element possible in the Interactive message component, defined by cometchat

Following are the different elements possible

  1. Label Element - shows fixed text in an Interactive message
  2. TextInput Element - shows a component with the ability to take text input
  3. DropDown Element - shows a list of options to choose one from
  4. Checkbox Element - shows a list of checkboxes, and can select multiple
  5. Single Select Element - show a list of options to choose one from, a different way to show radio buttons
  6. Radio Button Element - shows a list of radio buttons, to choose one answer from
  7. Button Element - shows an interactive button component, that can perform different types of actions defined inside class ActionEntity

ElementType specifies the type of interactive element.

NameDescription
labelAn unmodifiable text description.
textA text input field.
dropdownA dropdown menu.
checkboxA checkbox input.
radioA radio button input.
buttonAn interactive button.
singleSelectA single-selection menu.