2. Is there any way to create component or widget.
For example i want to have Menu widget, with next configuration:
var menuItems = [
{title: 'Item1', url: '/link1'},
{title: 'Item2', url: '/link2', active: function() { return someCondition(); } },
]
and this widget will return <ul><li>.....</li></ul> html content.