Skip to main content

addObjectRadioButton

Creates a radio button – a small circle followed by text. Radio buttons are used in groups where tapping on one with the pen selects it and deselects the currently selected button in the group. Tapping with the pen also generates an event. Text is displayed in the current font.

ParameterDescription
id

The following values have special meanings when used with a signature object.
Cannot be any of the values reserved for text or button objects: who, why, Ok, Clear, Cancel.

x, y

Position of the top left corner of the object on the pad display.
Value can either be absolute position in pixels, or one of the strings:

  • x: "left", "right", "centre"
  • y: "top", "middle", "bottom"
dataText to display.
options

Specifying the name of the group to which this radio button belongs and, optionally, whether this option is initially selected.

Return values
The added Object if success or null if there is some error.