Source
/*
** Copyright (C) 2001-2025 Zabbix SIA
**
** This program is free software: you can redistribute it and/or modify it under the terms of
** the GNU Affero General Public License as published by the Free Software Foundation, version 3.
**
** This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
** without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
** See the GNU Affero General Public License for more details.
**
** You should have received a copy of the GNU Affero General Public License along with this program.
** If not, see <https://www.gnu.org/licenses/>.
**/
class CWidgetItemNavigator extends CWidget {
/**
* Item navigator instance.
*
* @type {CItemNavigator|null}
*/
#item_navigator = null;
/**
* Listeners of item navigator widget.
*
* @type {Object}
*/
#listeners = {};
/**
* Scroll amount of contents.
*
* @type {number}
*/
#contents_scroll_top = 0;
/**
* ID of selected item.
*
* @type {string|null}
*/
#selected_itemid = null;
/**
* Key of selected item.
*
* @type {string|null}
*/
#selected_key_ = null;
/**
* Items data from the request.
*
* @type {Map<string, {hostid: string, itemid: string, key_: string, name: string, problem_count: number[]}>}
*/
#items_data = new Map();
/**
* CSRF token for navigation.tree.toggle action.
*
* @type {string|null}