new ColorPickerInput( [p_text])
Parameters:
Name | Type | Argument | Default | Description |
---|---|---|---|---|
p_text |
string |
<optional> |
null | Valor da cor selecionada. |
Example
import {ColorPickerInput} from "mvcomponents/input"; let colorPickerInput:ColorPickerInput = new ColorPickerInput(); colorPickerInput.setValue("#ff5e75"); this.append(colorPickerInput);
Extends
- TextInput
Methods
-
setValue(color)
-
Altera a cor selecionada.
Parameters:
Name Type Description color
string Texto da cor selecionada. (Ex.: "red","#ff5e75","#CCC")
Returns:
- Type
- ColorPickerInput
Example
let colorPickerInput:ColorPickerInput = new ColorPickerInput(); colorPickerInput.setValue("#ff5e75");