<script>
_govWidget = {
manualInitMode: true,
cssOrigin: 'домен_виджета',
catalogOrigin: 'домен_виджета',
menu: [{
text: 'Меню',
items: [{
text: 'Отключение поиска',
link: '/content/examples/1/'
},{
text: 'Локальный поиск',
link: '/content/examples/2/'
}]
},{
text: 'Переключение языков',
link: '/content/examples/7/'
},{
text: 'Элемент "Регион"',
link: '/content/examples/11/'
}]
}
</script>
<script src="домен_виджета/widget/widget.js"></script>
<script>
Gosbar.init(_govWidget).then(function(manager) {
manager.setLocationLabel('Выберите регион');
manager.displayLocationButton();
manager.onLocationLabelClick = function() {
manager.setLocationLabel('Нажат элемент выбора региона');
};
});
</script>