Employee Center - Include OOTB header widget in custom header widget

Vegard S
Kilo Sage

I'm working on a project where graphic designers wants to make some changes to Employee Center Header widget. 
Specifically they want to replace the My Requests and My Tasks with a combined dropdown that displays a mini widget we typically find on the front page. 

I know I can clone the widget, but I find it creates unecessary technical debt cloning the whole thing. When all I need to do is replace these menu items with a custom one. 

 

Is the only way to clone the whole thing or is it possible to embed the ootb widget and do some overrides in my own widget?

1 ACCEPTED SOLUTION

Mark Manders
Mega Patron

Just replace it with your own.


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

View solution in original post

2 REPLIES 2

Mark Manders
Mega Patron

Just replace it with your own.


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark


Either that, or push back on the requirement. 
There seems to be a slightly less tech debt heavy approach by only cloning the Header Menu and not the entire widget.

Then I can set these to false:

	"enable_requests":{
		"displayValue":"false",
		"value":false
	},
	"enable_tasks":{
		"displayValue":"false",
		"value":false
	}

And put my variant in the Header Menu and reposition it with CSS. 
I might just do that unless the designers yield 😄