function initTabs(object, panel, tabs) {
            let pan = object.get(panel)
            if (pan != null && tabs == null) tabs = pan.tabs
            if (pan == null || tabs == null) return false
            // instantiate tabs
            if (Array.isArray(tabs)) tabs = { tabs: tabs }
            let name = object.name + '_' + panel + '_tabs'
            if (w2ui[name]) w2ui[name].destroy() // destroy if existed
            pan.tabs      = new w2tabs(w2utils.extend({}, tabs, { owner: object, name: object.name + '_' + panel + '_tabs' }))
            pan.show.tabs = true
            return true
        }
Part of w2ui 2.0 library
 - Dependencies: mQuery, w2utils, w2base, w2tabs, w2toolbar

== 2.0 changes
 - CSP - fixed inline events
 - remove jQuery dependency
 - layout.confirm - refactored
 - layout.message - refactored
 - panel.removed
 - assignTabs