UNPKG

@compdfkit_pdf_sdk/react_native

Version:

ComPDFKit for React Native is a comprehensive SDK that allows you to quickly add PDF functionality to Android, iOS, and React Native applications.

39 lines (37 loc) 1.6 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CPDFListboxWidget = void 0; var _CPDFWidget = require("./CPDFWidget"); /** * Copyright © 2014-2025 PDF Technologies, Inc. All Rights Reserved. * * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE ComPDFKit LICENSE AGREEMENT. * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES. * This notice may not be removed from this file. */ /** * Class representing a listbox form widget, storing basic information about the listbox form. * * @class CPDFListboxWidget * @memberof CPDFListboxWidget * @property {CPDFWidgetItem[]} options - The list of options available in the listbox. * @property {number[]} selectedIndexes - The indexes of the selected options in the listbox (default: []). * @property {string} fontColor - The font color of the listbox (default: '#000000'). * @property {number} fontSize - The font size of the listbox (default: 0). */ class CPDFListboxWidget extends _CPDFWidget.CPDFWidget { constructor(viewerRef, params) { super(viewerRef, params); this.options = params.options ?? []; this.selectedIndexes = params.selectedIndexes ?? []; this.fontColor = params.fontColor ?? "#000000"; this.fontSize = params.fontSize ?? 0; this.familyName = params.familyName ?? ""; this.styleName = params.styleName ?? ""; } } exports.CPDFListboxWidget = CPDFListboxWidget; //# sourceMappingURL=CPDFListboxWidget.js.map