Our blazing fast Grid component built with pure JavaScript


Post by syless »

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.

Attachments
2.png
2.png (3.99 KiB) Viewed 713 times

Post by Animal »


Post by Animal »

I just modified an online example to show it:

Screenshot 2023-04-28 at 09.22.12.png
Screenshot 2023-04-28 at 09.22.12.png (600.33 KiB) Viewed 704 times

Post by syless »

sorry for the lack of explanation

I'd like to add the custom validation.

For example, Whether the field modification should not be entered according to the specific value of the record, or whether it should be entered as essential.

Thank you.


Post by alex.l »

All the best,
Alex


Post by syless »

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();
                        }
                    }
                }
            }
Attachments
1.png
1.png (37.28 KiB) Viewed 673 times

Post by alex.l »

Could you please explain what you mean by " is not displayed normally"?
Nothing special for LWC is required.

All the best,
Alex


Post by syless »

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.

Attachments
1.png
1.png (3.38 KiB) Viewed 662 times

Post by alex.l »

Could you please tell us what version of Bryntum Grid you actually use?

All the best,
Alex


Post by syless »

I'm using version 5.3.2.


Post Reply