MCPcopy Create free account
hub / github.com/LibPDF-js/core / getListBox

Method getListBox

src/api/pdf-form.ts:365–369  ·  view source on GitHub ↗

* Get a list box field by name. * * @returns The list box field, or undefined if not found or wrong type

(name: string)

Source from the content-addressed store, hash-verified

363 * @returns The list box field, or undefined if not found or wrong type
364 */
365 getListBox(name: string): ListBoxField | undefined {
366 const field = this.fieldsByName.get(name);
367
368 return field instanceof ListBoxField ? field : undefined;
369 }
370
371 /**
372 * Get a signature field by name.

Callers 2

mainFunction · 0.80
mainFunction · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected