跳至內容
選單
此問題已被標幟
1 回覆
4882 瀏覽次數

Hi Community,

I need to show breadcrumbs While Navigating From Js Page to Another Js Page.

It's working Fine from Client to Window action and Window to Window Action but From Client to Client Not Working Properly,

Need to Show Breadcrumb like following image  from Client to Client Action Image Link

頭像
捨棄
作者 最佳答案

Hi Everyone,

It's done by using following code.

var ControlPanelMixin = require('web.ControlPanelMixin');
var AnalyticsChart = Widget.extend(ControlPanelMixin, {
init: function (parent, action, options) {
this._super.apply(this, arguments);
this.action_manager = parent;
var options = action.params || {};
this.params = options;
action.display_name = _t('Analytics Report');
},

start: function(){
var self = this;
var status = {
breadcrumbs: self.action_manager.get_breadcrumbs(),
cp_content: {$buttons: self.$buttons},
};
self.update_control_panel(status);
},
});

Thanks.

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
0
8月 24
791
2
7月 24
15715
2
9月 23
8562
1
4月 20
10295
1
4月 20
4867