@progress/kendo-angular-navigation
Version:
Kendo UI Navigation for Angular
34 lines (33 loc) • 1 kB
JavaScript
/**-----------------------------------------------------------------------------------------
* Copyright © 2025 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the project root for more information
*-------------------------------------------------------------------------------------------*/
/**
* @hidden
*/
export const BREADCRUMB_ITEM_INDEX = 'data-kendo-breadcrumb-index';
/**
* @hidden
*/
export const DEFAULT_SIZE = 'medium';
const SIZES = {
small: 'sm',
medium: 'md',
large: 'lg'
};
/**
* @hidden
*
* Returns the styling classes to be added and removed
*/
export const getStylingClasses = (stylingOption, previousValue, newValue) => {
switch (stylingOption) {
case 'size':
return {
toRemove: `k-breadcrumb-${SIZES[previousValue]}`,
toAdd: newValue !== 'none' ? `k-breadcrumb-${SIZES[newValue]}` : ''
};
default:
break;
}
};