feat(fields): adiciona limite na exibição de mensagens de erro #2345
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
field-container-bottom, checkbox-group, combo, datepicker, datepicker-range, decimal, email, input, login, lookup, multiselect, number, password, radio group, rich-text, select, textarea, url
fixes DTHFUI-10517
PR Checklist [Revisor]
Qual o comportamento atual?
Não possui um modo de limitar a mensagem de erro
Qual o novo comportamento?
Adiciona as propriedades:
-
p-error-limit
nopo-field-container-bottom
e nos componentespo-checkbox-group
,po-combo
,po-datepicker
,po-datepicker-range
,po-decimal
,po-email
,po-input
,po-login
,po-lookup
,po-multiselect
,po-number
,po-password
,po-radio group
,po-rich-text
,po-select
,po-textarea
,po-url
-
errorLimit
na interface para o componentepo-dynamic-form-field
utilizado para os componentespo-datepicker
,po-input
,po-number
,po-decimal
,po-password
,po-datepicker-range
,po-select
,po-checkbox-group
,po-radio-group
,po-multiselect
,po-combo
,po-lookup
,po-textarea
po-field-container-bottom
, a propriedade permite limitar a exibição da mensagem de erro a duas linhas e exibir um tooltip com o texto completo.Essa funcionalidade permite uma exibição mais compacta da mensagem de erro, com a opção de visualizar o conteúdo completo (via tooltip) ao passar o mouse sobre o erro.
Simulação
simular no portal e a vitrine na tela de formulario