Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
5262 Lượt xem

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

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

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.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 8 24
1043
2
thg 7 24
16398
2
thg 9 23
9175
1
thg 4 20
10805
1
thg 4 20
5435