HEX
Server: Apache/2.4.62 (Debian)
System: Linux plxsite 6.8.0-47-generic #47-Ubuntu SMP PREEMPT_DYNAMIC Fri Sep 27 21:40:26 UTC 2024 x86_64
User: root (0)
PHP: 8.1.30
Disabled: NONE
Upload Files
File: /var/www/html/wp-content/plugins/admin-menu-editor/customizables/assets/popup-slider.d.ts
/*
 * TypeScript definitions for the internal popup slider. It's exposed in the global
 * scope as "AmePopupSlider".
 */

declare class AmePopupSlider {
	constructor($container: JQuery, options?: AmePopupSliderOptions);

	showForInput($input: JQuery): void;

	static createSlider($container: JQuery, options?: AmePopupSliderOptions): AmePopupSlider;
}

declare type AmePopupSliderRanges = Record<string, {
	min: number;
	max: number;
	step: number;
}>;

declare interface AmePopupSliderOptions {
	positionParentSelector?: string;
	verticalOffset?: number;
	/**
	 * A dictionary of slider ranges. Overrides the ranges specified in the HTML if present.
	 */
	ranges?: AmePopupSliderRanges|null;
	/**
	 * A jQuery object that represents the slider element, if it has already been created.
	 */
	sliderElement?: JQuery|null;
	positionWithinClosest?: string;
}