@pencil.js/select
v1.18.0
Published
Select user input for Pencil.js package.
Readme
Select
Select user input.

Installation
npm install @pencil.js/selectExamples
import Select from "@pencil.js/select";
const position = [100, 200];
const items = [
null, // Selectable empty item
"Unicorn",
"Pony",
"Doggy",
];
const options = {
value: 1, // index of the default value
};
const select = new Select(position, items, options);SelectOptions
Inherit from TextOptions and InputOptions.
| Name | Type | Default | Comment |
| ---- | ---- | ------- | ------- |
|value |Number |0 |Selected index of the select |
