Search results

DropdownFieldSettings API in JavaScript PDF Viewer API control

The DropdownFieldSettings is used to to show and customize the appearance of drop down element.

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

Properties

alignment

TextAlignment

Get or set the alignment of the text.

backgroundColor

string

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

borderColor

string

Get or set the border color of the drop down field.

bounds

IFormFieldBound

Get or set the form field bounds.

color

string

Get or set the font color of the dropdown in hexadecimal string format..

fontFamily

string

Get or set the font family of the dropdown field.

fontSize

number

Get or set the font size of the dropdown field.

fontStyle

FontStyle

Get or set the font style of dropdown field.

isPrint

boolean

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

isReadOnly

boolean

Specifies whether the dropdown 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.

name

string

Get or set the name of the dropdown.

options

ItemModel[]

Get or set the dropdown items.

pageNumber

number

specifies the page number of the form field.

thickness

number

Get or set the thickness of the drop down 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.

visibility

Visibility

Gets or set the visibility of the form field.