new ComboBoxWidget()
[Missing documentation]
Extends
- WidgetAnnot
Methods
-
<static> create(doc, pos [, field_name])
-
Constructor
Parameters:
Name Type Argument Description doc
PDFNet.PDFDoc | PDFNet.SDFDoc | PDFNet.FDFDoc pos
PDFNet.Rect field_name
string <optional>
Returns:
A promise that resolves to an object of type: "PDFNet.ComboBoxWidget"- Type
- Promise.<PDFNet.ComboBoxWidget>
-
<static> createFromAnnot(annot)
-
Parameters:
Name Type Description annot
PDFNet.Annot Returns:
A promise that resolves to an object of type: "PDFNet.ComboBoxWidget"- Type
- Promise.<PDFNet.ComboBoxWidget>
-
<static> createFromObj( [obj])
-
Parameters:
Name Type Argument Description obj
PDFNet.Obj <optional>
Returns:
A promise that resolves to an object of type: "PDFNet.ComboBoxWidget"- Type
- Promise.<PDFNet.ComboBoxWidget>
-
<static> createWithField(doc, pos, field)
-
Parameters:
Name Type Description doc
PDFNet.PDFDoc | PDFNet.SDFDoc | PDFNet.FDFDoc pos
PDFNet.Rect field
PDFNet.Field Returns:
A promise that resolves to an object of type: "PDFNet.ComboBoxWidget"- Type
- Promise.<PDFNet.ComboBoxWidget>
-
addOption(value)
-
Parameters:
Name Type Description value
string Returns:
- Type
- Promise.<void>
-
addOptions(options, options_size)
-
Parameters:
Name Type Description options
string options_size
number Returns:
- Type
- Promise.<void>
-
getSelectedOption()
-
Returns:
A promise that resolves to an object of type: "string"- Type
- Promise.<string>
-
removeOption(value)
-
Parameters:
Name Type Description value
string Returns:
- Type
- Promise.<void>
-
replaceOptions(options, options_size)
-
Parameters:
Name Type Description options
string options_size
number Returns:
- Type
- Promise.<void>
-
setSelectedOption(value)
-
Parameters:
Name Type Description value
string Returns:
- Type
- Promise.<void>