UNPKG

@ribajs/bs4

Version:

Bootstrap 4 module for Riba.js

41 lines (40 loc) 1.48 kB
import { Component, TemplateFunction, ScopeBase } from "@ribajs/core"; import CarouselService from "../../services/carousel.service.js"; import { CarouselOption } from "../../interfaces/index.js"; export interface Scope extends ScopeBase { interval: CarouselOption["interval"]; keyboard: CarouselOption["keyboard"]; slide: CarouselOption["slide"]; pauseOn: CarouselOption["pause"]; wrap: CarouselOption["wrap"]; touch: CarouselOption["touch"]; ride: CarouselOption["ride"]; fade: boolean; next: Bs4CarouselComponent["next"]; nextWhenVisible: Bs4CarouselComponent["nextWhenVisible"]; prev: Bs4CarouselComponent["prev"]; pause: Bs4CarouselComponent["pause"]; cycle: Bs4CarouselComponent["cycle"]; to: Bs4CarouselComponent["to"]; dispose: Bs4CarouselComponent["dispose"]; } export declare class Bs4CarouselComponent extends Component { static tagName: string; static get observedAttributes(): string[]; protected requiredAttributes(): string[]; scope: Scope; protected autobind: boolean; protected carouselService?: CarouselService; constructor(); protected beforeBind(): Promise<void>; protected afterBind(): Promise<void>; next(): void; nextWhenVisible(): void; prev(): void; pause(): void; cycle(event: Event): void; to(index: number): void; dispose(): void; protected connectedCallback(): void; protected template(): ReturnType<TemplateFunction>; }