Hi,
We have many validation for user's input.
So I want to display the error message like attach.
I think I might need to use the errorTip but not sure how I use.
Can you let me the sample or hint for this?
Thank you.
column : {
editor : {
required : true
}
}
https://bryntum.com/products/grid/docs/api/Core/widget/Field#config-required
Hi,
There are https://bryntum.com/products/grid/docs/api/Core/widget/Field#function-setError and https://bryntum.com/products/grid/docs/api/Core/widget/Field#function-clearError for these purposes. You can set any error message you will
All the best,
Alex
Hi,
Thank you for the details.
I learned how to use it.
But the problem is that the message is not displayed normally.
Using the same code, the output is normal in the sample, but is a separate operation required inside lwc?
Thank you.
editor: {
type: 'number',
listeners : {
action(event) {
console.log('fire');
const { value, source } = event;
if (value < 100) {
source .setError('Invalid Input');
} else {
source .clearError();
}
},
input(event) {
const { value, source : numberField } = event;
if (value < 100) {
source .setError('Invalid Input');
} else {
source .clearError();
}
}
}
}
sorry for the confusion
What I mean is the message is not showing.
I applied the same code, but a message comes out in the sample, and the error content itself is applied in lwc,
but no message comes out.
That's why I asked if I needed an additional operation in lwc.