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

Method getCheckbox

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

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

(name: string)

Source from the content-addressed store, hash-verified

330 * @returns The checkbox field, or undefined if not found or wrong type
331 */
332 getCheckbox(name: string): CheckboxField | undefined {
333 const field = this.fieldsByName.get(name);
334
335 return field instanceof CheckboxField ? field : undefined;
336 }
337
338 /**
339 * Get a radio button group by name.

Callers 3

pdf-form.test.tsFile · 0.80
mainFunction · 0.80
mainFunction · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected