@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

Readme

Keywords

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