Foxit PDF RDK

Public Member Functions | Public Attributes | List of all members
ChoiceOption Class Reference
Inheritance diagram for ChoiceOption:

## Public Member Functions
| constructor ()
| Constructor.
| constructor (option_value, option_label, selected, default_selected) Set(option_value
| Constructor, with parameters. More...
Public Member Functions inherited from NativeObjectWrapper
| constructor (r)
| GetPointerAsNumber ()

## Public Attributes
| default_selected
| Used to indicate whether the option would be selected by default or not.
| option_label
| The displayed string value for the option.
| option_value
| The option string value.
| selected
| Used to indicate whether the option is selected or not.

## Detailed Description

This class represents the data of an option in list box or combo box.

Examples
  /Users/ec2-user/gitlab-runner/builds/E-xKdhDo/0/foxit/sdk/mobile/gsdk-doc-auto-build/harmony_nodejs/input/Index.js.

## Member Function Documentation

## ◆ constructor()

ChoiceOption.constructor | ( |  | option_value,
|  |  | option_label,
|  |  | selected,
|  |  | default_selected
| ) |  |

Constructor, with parameters.

Parameters

  [in] | option_value | The option string value.
  [in] | option_label | The displayed string value for the option.
  [in] | selected | true means the option is selected, and false means the option is not selected.
  [in] | default_selected | true means the option would be selected by default, and false means the option would not be selected by default.

Set value.

Parameters

  [in] | option_value | The option string value.
  [in] | option_label | The displayed string value for the option.
  [in] | selected | true means the option is selected, and false means the option is not selected.
  [in] | default_selected | true means the option would be selected by default, and false means the option would not be selected by default.

Returns
  None.