Adding table customizer

I have created my own table component.How to add table customizer to a table component?

It gives me an error message “Error- this object is not a table”

Same question already answered here: https://inductiveautomation.com/forum/viewtopic.php?f=89&t=13322&p=48540#p48540