cancel
Showing results for 
Search instead for 
Did you mean: 

Can you overide the template attribute in widget-extension? Cockpit NG

Former Member
0 Kudos
185

Hello I was wondering if you can change the template attribute in *-widgets.xml when overriding an existing widget with widget-extension.

Thank you very much!

Accepted Solutions (1)

Accepted Solutions (1)

former_member632755
Active Contributor
0 Kudos

Hi,

as far as I understand the xsd it is not possible. You may change the routing settings for an existing themplate but not to change the decision if the widget is a template.

I can hardly imagine a scenario where this use case would be valid, nevertheless if you see it and can descibe a good use case I will create an improvement for it 🙂

Cheers, Wojtek

Former Member
0 Kudos

Thank you for your answer!

I was trying to move the existing collapsibleContainer widget(which contains the search, listView, etc) to a tab widget's children slot. The collapsibleContainer has the template set to false. And I think because of that the tabs do not switch(or rather the collapsibleContainer is not made visible). The workaround was to delete the existing widget and to replace it with all the configuration in my extension with the template set to true.

Thank you!

Former Member
0 Kudos

So, is this a good reason or can I achieve this in a different way? Thanks.

former_member632755
Active Contributor
0 Kudos

Got it. I think we need an improvement here. Your approach seems OK.

Answers (0)