1.18.0 • Published 4 years ago
@pencil.js/select v1.18.0
Select
Select user input.
Installation
npm install @pencil.js/select
Examples
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 |
1.18.0
4 years ago
1.17.0
4 years ago
1.16.0
4 years ago
1.15.0
4 years ago
1.14.0
4 years ago
1.13.1
4 years ago
1.13.0
5 years ago
1.12.0
5 years ago
1.11.0
5 years ago
1.10.2
5 years ago
1.10.1
5 years ago
1.10.0
5 years ago
1.9.2
5 years ago
1.9.0
5 years ago
1.8.0
5 years ago
1.7.0
5 years ago
1.6.6
5 years ago
1.6.5
5 years ago
1.6.4
5 years ago
1.6.3
5 years ago
1.6.2
5 years ago
1.6.1
5 years ago
1.6.0
5 years ago
1.5.0
5 years ago
1.4.1
5 years ago
1.4.0
5 years ago
1.3.1
6 years ago
1.2.0
6 years ago