new IconPickerInput()
Example
import {IconPickerInput} from "mvcomponents/input"; let iconPickerInput:IconPickerInput = new IconPickerInput(); this.append(IconPickerInput);
Extends
Methods
-
getDesc()
-
Recupera a descrição do item selecionado no campo.
Returns:
- Type
- string
Example
let iconPickerInput:IconPickerInput = new IconPickerInput();
-
getDescFromServiceByValue(p_vl)
-
Recupera a descrição do item selecionado no campo pelo valor.
Parameters:
Name Type Description p_vl
string Valor do campo.
Returns:
- Type
- string
Example
let iconPickerInput:IconPickerInput = new IconPickerInput();
-
getFromUpList(p_on)
-
Exibir a lista.
Parameters:
Name Type Description p_on
boolean Valor booleano que indica se vai exibir ou não a lista.
Example
let iconPickerInput:IconPickerInput = new IconPickerInput();
-
getLabelField()
-
Recupera o label do campo
Returns:
- Type
- string
Example
let iconPickerInput:IconPickerInput = new IconPickerInput();
-
getRawValue()
-
- Inherited From:
Returns:
- Type
- string
-
getText()
-
Recupera o texto do item selecionado no campo.
Returns:
- Type
- string
Example
let iconPickerInput:IconPickerInput = new IconPickerInput();
-
getValue()
-
Recupera o valor do item selecionado no campo.
- Overrides:
Returns:
- Type
- string
Example
let iconPickerInput:IconPickerInput = new IconPickerInput();
-
getValueField()
-
Recupera o valor do campo
Returns:
- Type
- string
Example
let iconPickerInput:IconPickerInput = new IconPickerInput();
-
isBlankWhenNull()
-
Retorna o valor alterado, caso tenha executado o 'setBlankWhenNull(on)'.
- Inherited From:
Returns:
- Type
- boolean
-
isNullable()
-
Retorna
true
caso o campo aceite 'null' como valor- Inherited From:
Returns:
- Type
- boolean
-
isValid()
-
Verifica se o campo está válido.
Returns:
- Type
- boolean
Example
let iconPickerInput:IconPickerInput = new IconPickerInput();
-
resizeList(evt)
-
Redimensionar a lista.
Parameters:
Name Type Description evt
Event Evento para redimensionar
Example
let iconPickerInput:IconPickerInput = new IconPickerInput();
-
setBlankWhenNull(on)
-
Caso o valor
true
seja informado, ao executar ogetValue()
será retornado uma string vazia quando o campo estiver vazio. Do contrário, será retornadonull
.Parameters:
Name Type Description on
boolean - Inherited From:
Returns:
- Type
- this
-
setData(data)
-
Altera os itens que serão disponibilizados no campo.
Parameters:
Name Type Description data
Array.<any> Itens disponibilizados no campo.
Example
let iconPickerInput:IconPickerInput = new IconPickerInput();
-
setDescriptionField(p_column)
-
Alterar o texto do campo
Parameters:
Name Type Description p_column
string Texto do campo.
Example
let iconPickerInput:IconPickerInput = new IconPickerInput();
-
setMask(mask)
-
Informa a mascara que será utilizada pelo input
Parameters:
Name Type Description mask
string - Inherited From:
Returns:
- Type
- this
-
setMaxLength(value)
-
Parameters:
Name Type Description value
number - Inherited From:
Returns:
- Type
- this
-
setNullable(on)
-
Caso seja informado
true
o campo irá assumir 'null' como valor quandosetValue(null)
for executado.Parameters:
Name Type Description on
boolean - Inherited From:
Returns:
- Type
- this
-
setRawValue(value)
-
Parameters:
Name Type Description value
string - Inherited From:
Returns:
- Type
- this
-
setValue(value)
-
Alterar o valor do campo.
Parameters:
Name Type Description value
string Valor do campo.
- Overrides:
Returns:
- Type
- IconPickerInput
Example
let iconPickerInput:IconPickerInput = new IconPickerInput();
-
setValueField(p_column)
-
Alterar o atributo do objeto que indica o valor do campo.
Parameters:
Name Type Description p_column
string Valor do campo.
Example
let iconPickerInput:IconPickerInput = new IconPickerInput();
-
showList(p_on)
-
Exibir a lista.
Parameters:
Name Type Description p_on
boolean Valor booleano que indica se vai exibir ou não a lista.
Example
let iconPickerInput:IconPickerInput = new IconPickerInput();