2021-05-13 07:29:46 +08:00
|
|
|
/**
|
|
|
|
* The `Select` component displays a <select> input, surrounded with some extra
|
|
|
|
* elements for styling. It accepts the following attrs:
|
|
|
|
*
|
|
|
|
* - `options` A map of option values to labels.
|
|
|
|
* - `onchange` A callback to run when the selected value is changed.
|
|
|
|
* - `value` The value of the selected option.
|
|
|
|
* - `disabled` Disabled state for the input.
|
2021-07-13 20:44:21 +08:00
|
|
|
* - `wrapperAttrs` A map of attrs to be passed to the DOM element wrapping the `<select>`
|
|
|
|
*
|
|
|
|
* Other attributes are passed directly to the `<select>` element rendered to the DOM.
|
2021-05-13 07:29:46 +08:00
|
|
|
*/
|
2021-08-19 17:17:15 +08:00
|
|
|
export default class Select extends Component<import("../Component").ComponentAttrs, undefined> {
|
2021-05-13 07:29:46 +08:00
|
|
|
constructor();
|
|
|
|
}
|
|
|
|
import Component from "../Component";
|