Skip to Content
Menu
This question has been flagged
1 Atsakyti
4890 Rodiniai

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

Portretas
Atmesti
Autorius Best Answer

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.

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
0
rugp. 24
799
2
liep. 24
15731
2
rugs. 23
8576
1
bal. 20
10303
1
bal. 20
4878