You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Apologies for my poor understanding of JTable.
Maybe what I'm asking is obvious but I couldn't find an answer.
I've a table showing records with some particular text field.
I wish to do some simple automatic things like trim spaces from these fields or convert them to uppercase or lowercase right after input and before submitting the form.
I've defined some CSS classes like 'trim-value', 'uppercase-value', ..., associated them to the fields with inputClass and added handlers for their onfocusout event like this:
Hi,
As you say it works. There is no specific jTable event so there is no right or wrong way to code your problem, only a matter of coding style / taste.
I would have encapsulated it all in the field definition using an input option.
Apologies for my poor understanding of JTable.
Maybe what I'm asking is obvious but I couldn't find an answer.
I've a table showing records with some particular text field.
I wish to do some simple automatic things like trim spaces from these fields or convert them to uppercase or lowercase right after input and before submitting the form.
I've defined some CSS classes like 'trim-value', 'uppercase-value', ..., associated them to the fields with
inputClass
and added handlers for theironfocusout
event like this:It works, but I wonder if this the right approach. Is there a specific event for handling field filtering?
The text was updated successfully, but these errors were encountered: