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
allow user to update cell value in updatedValue
e.g.
// Bind user-specified events if they exist
if (typeof columnDef.afterChange == 'function') {
let updatedValue = columnDef.afterChange(newValue, td);
if (updatedValue) td.text(updatedValue);
}
The text was updated successfully, but these errors were encountered:
avp90
added a commit
to avp90/jquery-editable-table
that referenced
this issue
Aug 27, 2021
If I understand correctly, the intent would be that afterChange() would function as before when it acts as a void and returns nothing, but should it return a value, it behaves as a formatter? Thinking of a use-case.... perhaps you'd want to take in a number like 123.4, and after change, display it formatted as a currency, such as $123.40 - so afterChange() would add the $, round to 2 decimal places, and return the new string? If so, I like the idea!
allow user to update cell value in updatedValue
e.g.
The text was updated successfully, but these errors were encountered: