Enable Cell editor in Pivot component

How to enable cell editor in Pivot component?

Beware that you will lost all changes after applying different configuration to pivot

var table = $$("pivot").getChildViews()[1];
//enable edit operations 
table.define("editable", true)
//set editor of first column
table.config.columns[0].editor = "text";