@progress/kendo-angular-layout
Version:
Kendo UI for Angular Layout Package - a collection of components to create professional application layoyts
25 lines (24 loc) • 1.08 kB
JavaScript
/**-----------------------------------------------------------------------------------------
* Copyright © 2025 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the project root for more information
*-------------------------------------------------------------------------------------------*/
import { BUTTON_SCROLL_SPEED, MOUSE_SCROLL_SPEED } from "../constants";
/**
* @hidden
*/
const normalizeSettings = ({ enabled = true, scrollButtons = 'auto', mouseScroll = true, buttonScrollSpeed = BUTTON_SCROLL_SPEED, mouseScrollSpeed = MOUSE_SCROLL_SPEED, scrollButtonsPosition = 'split', prevButtonIcon, nextButtonIcon, prevSVGButtonIcon, nextSVGButtonIcon }) => ({
enabled,
scrollButtons,
mouseScroll,
buttonScrollSpeed,
mouseScrollSpeed,
scrollButtonsPosition,
prevButtonIcon,
nextButtonIcon,
prevSVGButtonIcon,
nextSVGButtonIcon
});
/**
* @hidden
*/
export const normalizeScrollableSettings = (settings) => normalizeSettings(settings === false ? { enabled: false } : settings);