Search results

RadioButtonFieldSettings API in React PDF Viewer API component

The RadioButtonFieldSettings is used to to show and customize the appearance of radio button element.

<div id="pdfViewer" style="height: 100%;width: 100%;"></div>
 let viewer: PdfViewer = new PdfViewer();
 // Change the radio button field settings.
 viewer.radioButtonFieldSettings = {
     name: '',
     isSelected: false,
     backgroundColor: 'white',
     isReadOnly: false,
     visibility: 'visible',
     isPrint: true,
     tooltip: '',
     isRequired: false,
     thickness: 1,
     borderColor: 'black'
 };
 viewer.appendTo("#pdfViewer");

Properties

backgroundColor

string

Get or set the background color of the radio button in hexadecimal string format.

borderColor

string

Get or set the border color of the radio button field.

bounds

IFormFieldBound

Get or set the form field bounds.

isPrint

boolean

Get or set the boolean value to print the radio button field. TRUE by default.

isReadOnly

boolean

Specifies whether the radio button field is in read-only or read-write mode. FALSE by default.

isRequired

boolean

If it is set as true, consider as mandatory field in the PDF document. By default it is false.

isSelected

boolean

Specifies whether the radio button is in checked state or not.

name

string

Get or set the name of the form field element.

pageNumber

number

specifies the page number of the form field.

thickness

number

Get or set the thickness of the radio button field.

tooltip

string

Get or set the text to be displayed as tooltip. By default it is empty.

value

string

Get or set the value of the form field element.

visibility

Visibility

Gets or set the visibility of the form field.