@pencil.js/select

1.18.0 • Public • Published

Select

Select user input.

Select example

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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.18.02latest

Version History

VersionDownloads (Last 7 Days)Published
1.18.02
1.17.01
1.16.01
1.15.01
1.14.01
1.13.11
1.13.01
1.12.01
1.11.01
1.10.21
1.10.11
1.10.01
1.9.21
1.9.01
1.8.01
1.7.01
1.6.61
1.6.51
1.6.41
1.6.31
1.6.21
1.6.11
1.6.01
1.5.01
1.4.11
1.4.01
1.3.11
1.2.01

Package Sidebar

Install

npm i @pencil.js/select

Weekly Downloads

29

Version

1.18.0

License

MIT

Unpacked Size

8.31 kB

Total Files

4

Last publish

Collaborators

  • gmartigny