Search results

ListBoxFieldSettings API in Angular PDF Viewer API component

The ListBoxFieldSettings is used to to show and customize the appearance of list box element.

<div id="pdfViewer" style="height: 100%;width: 100%;"></div>
 let viewer: PdfViewer = new PdfViewer();
 // Change the list box field settings.
 viewer.listBoxFieldSettings = {
     name: '',
     fontFamily: 'Courier',
     fontSize: 5,
     fontStyle: 'None',
     color: 'black',
     backgroundColor: 'white',
     alignment: 'Right',
     isReadOnly: false,
     visibility: 'visible',
     isRequired: false,
     isPrint: false,
     tooltip: '',
     options: [],
     thickness: 1,
     borderColor: 'black'
 };
 viewer.appendTo("#pdfViewer");

Properties

alignment

TextAlignment

Get or set the alignment of the text.

backgroundColor

string

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

borderColor

string

Get or set the border color of the list box field.

bounds

IFormFieldBound

Get or set the form field bounds.

color

string

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

fontFamily

string

Get or set the font family of the listbox field.

fontSize

number

Get or set the font size of the listbox field.

fontStyle

FontStyle

Get or set the font Style of listbox field.

isPrint

boolean

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

isReadOnly

boolean

Specifies whether the listbox 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 form field element.

options

ItemModel[]

Get or set the listbox items.

pageNumber

number

specifies the page number of the form field.

thickness

number

Get or set the thickness of the list box field.

tooltip

string

Get or set the text to be displayed as tool tip. 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.