get config of datatable in $init

Hello,

How can I get the config of the datatable in the $init of that datatable?

If I try $$(‘gridId’).config i get that it’s undefined, if I try with ‘this’ there is no config object

thank you

if you mean $init used in protoUI, then config is passed as first argument.

webix.protoUI({
     $init: function(config){
         ...
     }
}, webix.ui.datatable);

this.config is possible as well