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
In retrospective, I should have passed Column as this into init and others. Instead, this is set to the source, for some forgotten now reasons. Correcting it though would be a breaking change, perhaps now worth doing, unless a major version is impending.
I am still not clear why do you want to access Column from inside the object itself? You didn't specify the reason.
Hi!
I'm using the
init
callback function on Column to sanitize some input based on the column's type casting before inserting.Quick & dirty example:
While this works fine, It might be a nice addtion to allow access to access the
Column
object from insideinit()
Either by (typescript for clarity):
init: (config: helpers.initCB, column: helpers.Column) => { ... }
init: (col: {source: any, name: string, value:any, exists: boolean, column:helpers.Column})
Is this something that can be considered? Would the be a performance hit? Happy to work on a PR
The text was updated successfully, but these errors were encountered: