How to use the @ui5/webcomponents-base/dist/delegate/ItemNavigation.js function in @ui5/webcomponents-base

To help you get started, we’ve selected a few @ui5/webcomponents-base examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github SAP / ui5-webcomponents / packages / main / src / TabContainer.js View on Github external
_initItemNavigation() {
		this._itemNavigation = new ItemNavigation(this);
		this._itemNavigation.getItemsCallback = () => this._getTabs();
	}
github SAP / ui5-webcomponents / packages / main / src / List.js View on Github external
initItemNavigation() {
		this._itemNavigation = new ItemNavigation(this);
		this._itemNavigation.getItemsCallback = () => this.getSlottedNodes("items");
	}
github SAP / ui5-webcomponents / packages / fiori / src / ProductSwitch.js View on Github external
initItemNavigation() {
		this._itemNavigation = new ItemNavigation(this, { rowSize: 4 });
		this._itemNavigation.getItemsCallback = () => this.items;
	}
github SAP / ui5-webcomponents / packages / main / src / MonthPicker.js View on Github external
constructor() {
		super();
		this._oLocale = getFormatLocale();
		this._oLocaleData = new LocaleData(this._oLocale);

		this._itemNav = new ItemNavigation(this, { rowSize: 3, cyclic: true });
		this._itemNav.getItemsCallback = function getItemsCallback() {
			return [].concat(...this._quarters);
		}.bind(this);
		this._itemNav.setItemsCallback = function setItemsCallback(items) {
			this._quarters = items;
		}.bind(this);
	}
github SAP / ui5-webcomponents / packages / main / src / Table.js View on Github external
constructor() {
		super();

		this._itemNavigation = new ItemNavigation(this);

		this._itemNavigation.getItemsCallback = function getItemsCallback() {
			const columnHeader = this.getColumnHeader();
			return columnHeader ? [columnHeader, ...this.rows] : this.rows;
		}.bind(this);

		this.fnOnRowFocused = this.onRowFocused.bind(this);

		this._handleResize = this.popinContent.bind(this);
	}
github SAP / ui5-webcomponents / packages / main / src / Tokenizer.js View on Github external
constructor() {
		super();

		this._tokensCount = 0;
		this._resizeHandler = this._handleResize.bind(this);
		this._itemNav = new ItemNavigation(this);

		this._itemNav.getItemsCallback = () => {
			if (this.disabled) {
				return [];
			}

			return this._getTokens().filter((token, index) => {
				return index < (this._getTokens().length - this.overflownTokens.length);
			});
		};

		this.i18nBundle = getI18nBundle("@ui5/webcomponents");
	}
github SAP / ui5-webcomponents / packages / main / src / YearPicker.js View on Github external
constructor() {
		super();

		this._oLocale = getFormatLocale();

		this._itemNav = new ItemNavigation(this, { rowSize: 4 });
		this._itemNav.getItemsCallback = function getItemsCallback() {
			return [].concat(...this._yearIntervals);
		}.bind(this);

		this._itemNav.attachEvent(
			ItemNavigation.BORDER_REACH,
			this._handleItemNavigationBorderReach.bind(this)
		);

		this._yearIntervals = [];
	}

@ui5/webcomponents-base

UI5 Web Components: webcomponents.base

Apache-2.0
Latest version published 5 days ago

Package Health Score

90 / 100
Full package analysis