UNPKG

uicore-ts

Version:

UICore is a library to build native-like user interfaces using pure Typescript. No HTML is needed at all. Components are described as TS classes and all user interactions are handled explicitly. This library is strongly inspired by the UIKit framework tha

41 lines (40 loc) 1.55 kB
import { UIButton } from "./UIButton"; import { UIRectangle } from "./UIRectangle"; import { UIScrollView } from "./UIScrollView"; import { UITimer } from "./UITimer"; import { UIView, UIViewBroadcastEvent } from "./UIView"; export declare class UISlideScrollerView extends UIView { _previousLayoutBounds?: UIRectangle; _targetIndex: number; pageIndicatorsView: UIView; _isAnimating: boolean; _isAnimationOngoing: boolean; _animationTimer?: UITimer; _scrollView: UIScrollView; _slideViews: UIView[]; wrapAround: boolean; animationDuration: number; animationDelay: number; _currentPageIndex: number; constructor(elementID: string, viewHTMLElement?: HTMLElement); buttonForPageIndicatorWithIndex(index: number): UIButton; addSlideView(view: UIView): void; set slideViews(views: UIView[]); get slideViews(): UIView[]; get currentPageIndex(): number; set currentPageIndex(index: number); scrollToPreviousPage(animated: boolean): void; scrollToNextPage(animated: boolean): void; scrollToPageWithIndex(targetIndex: number, animated?: boolean): void; willScrollToPageWithIndex(index: number): void; didScrollToPageWithIndex(index: number): void; startAnimating(): void; stopAnimating(): void; updateSlideViews(): void; didReceiveBroadcastEvent(event: UIViewBroadcastEvent): void; set frame(frame: UIRectangle); get frame(): UIRectangle; layoutSubviews(): void; layoutPageIndicators(): void; removeFromSuperview(): void; }