new TimeInput()
Example
import {TimeInput} from "mvcomponents/input";
let timeInput:TimeInput = new TimeInput();
this.append(timeInput);
Extends
Methods
-
getRawValue()
-
- Inherited From:
Returns:
- Type
- string
-
getValue()
-
Obtém o valor atual do componente. O método
setBlankWhenNullpode fazer com que a resposta varie- Inherited From:
Returns:
- Type
- string
-
isBlankWhenNull()
-
Retorna o valor alterado, caso tenha executado o 'setBlankWhenNull(on)'.
- Inherited From:
Returns:
- Type
- boolean
-
isNullable()
-
Retorna
truecaso o campo aceite 'null' como valor- Inherited From:
Returns:
- Type
- boolean
-
setBlankWhenNull(on)
-
Caso o valor
trueseja informado, ao executar ogetValue()será retornado uma string vazia quando o campo estiver vazio. Do contrário, será retornadonull.Parameters:
Name Type Description onboolean - Inherited From:
Returns:
- Type
- this
-
setMask(mask)
-
Informa a mascara que será utilizada pelo input
Parameters:
Name Type Description maskstring - Inherited From:
Returns:
- Type
- this
-
setMaxLength(value)
-
Parameters:
Name Type Description valuenumber - Inherited From:
Returns:
- Type
- this
-
setNullable(on)
-
Caso seja informado
trueo campo irá assumir 'null' como valor quandosetValue(null)for executado.Parameters:
Name Type Description onboolean - Inherited From:
Returns:
- Type
- this
-
setRawValue(value)
-
Parameters:
Name Type Description valuestring - Inherited From:
Returns:
- Type
- this
-
setValue(value)
-
Atualiza o valor atual do componente
Parameters:
Name Type Description valuestring | number - Inherited From:
Returns:
- Type
- this