MCPcopy
hub / github.com/Splidejs/splide / ResponsiveOptions

Interface ResponsiveOptions

src/js/types/options.ts:238–427  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

236 * @since 3.0.0
237 */
238export interface ResponsiveOptions {
239 /**
240 * Accepts arbitrary properties for extensions, although it's not ideal typing.
241 */
242 [ key: string ]: any;
243
244 /**
245 * The label for the root element.
246 * Use `labelledby` instead if there is a visible label.
247 */
248 label?: string;
249
250 /**
251 * The ID for the element that used as the label of the carousel.
252 */
253 labelledby?: string;
254
255 /**
256 * The transition speed in milliseconds.
257 */
258 speed?: number;
259
260 /**
261 * Determines whether to rewind the carousel or not.
262 * This is ignored when the `type` option is `'loop'`.
263 */
264 rewind?: boolean;
265
266 /**
267 * The transition speed on rewind in milliseconds.
268 */
269 rewindSpeed?: number;
270
271 /**
272 * Allows to rewind a carousel by drag if the `rewind` option is enabled.
273 */
274 rewindByDrag?: boolean;
275
276 /**
277 * Defines the slider max width, accepting the CSS format such as 10em, 80vw.
278 */
279 width?: number | string;
280
281 /**
282 * Defines the slider height, accepting the CSS format.
283 */
284 height?: number | string;
285
286 /**
287 * Fixes width of slides, accepting the CSS format.
288 * The slider will ignore the `perPage` option if you provide this value.
289 */
290 fixedWidth?: number | string;
291
292 /**
293 * Fixes height of slides, accepting the CSS format.
294 * The slider will ignore the `heightRatio` option if you provide this value.
295 */

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…