UNPKG

pencil.js

Version:

Nice modular interactive 2D drawing library.

42 lines (41 loc) 1.04 kB
/** * @module Input */ /** * Abstract Input class * @abstract * @class * @extends Component */ export default class Input extends Component { /** * @inheritDoc * @param {Object} definition - Input definition * @return {Input} */ static from(definition: any): Input; /** * Input constructor * @param {PositionDefinition} positionDefinition - Any position * @param {Component} base - Base shape for the background * @param {InputOptions} [options] - Specific options */ constructor(positionDefinition: any, base: Component, options?: InputOptions); base: Component; /** * Set the value of the input * @param {*} value - Any value */ set value(arg: any); /** * Return the value of the input */ get value(): any; /** * Action to execute on click */ click(): void; } export type InputOptions = any; export type InputEvents = any; import Component from "@pencil.js/component";