Our blazing fast Grid component built with pure JavaScript


Post by henrique »

I need to be notified if any field within a container is modified, to make a visual effect for the user.

Checking in the sources I found an event in the Container called onFieldChange, which is called when a widget is changed.

But I have not found an event to configure, to receive this event, can you tell me if this setting exists?


Post by alex.l »

onFieldChange is internal method and not recommended to be used, because it can be changed/renamed without any notification as any internal code.

Every field has its own change event https://bryntum.com/docs/gantt/api/Core/widget/TextField#event-change

Try to use it.

All the best,
Alex


Post by henrique »

I would like to be notified of this event, because in the form I have here, has more than 30 fields, there is no way to register the onChange of each to make the visual effect I need.

That's why I'd like to be notified by this event if any element of the form is modified.


Post by Animal »

This is a good idea. The machinery is there to do this, but is not public and doesn't fire an event.

Here is a FR to track: https://github.com/bryntum/support/issues/3595


Post by Animal »

If you use the code in that ticket to create an override for the class in your app, you will be able to use the fieldChange event it offers.


Post by henrique »

Nice, this is what I need. But how I generate the grid.module.js file?

I am staring in this world of JS and modules :D.


Post by alex.l »

It is already exists in the sources you downloaded. Check build folder?

All the best,
Alex


Post by henrique »

Yes, I got the license. But I need to generate the files in the build folder, but I don't know how to do that.


Post by saki »

Just download the grid zip from https://customerzone.bryntum.com/; it contains all bundles in build/ folder.


Post by henrique »

Sorry, but I didn't find the files in the folder, or they're not there.

But what I want to do is generate the files from the build folder, with the changes I made to the JS files in the lib folder.

How do I do that?


Post Reply