UNPKG

@salla.sa/twilight-components

Version:
42 lines (41 loc) 1.07 kB
export declare class SallaQuantityInput { host: HTMLElement; /** * Cart Item Id */ cartItemId: any; /** * Based on store setting: store.settings.product.manual_quantity */ disableInput: boolean; private hostAttributes; private hasIncrementSlot; private hasDecrementSlot; private textInput; private didLoaded; quantity: number; fireChangeEvent: boolean; /** * Workaround to fire change event for the input. */ watchPropHandler(): void; componentWillLoad(): Promise<void>; componentDidLoad(): void; private getInputAttributes; /** * decrease quantity by one. * @return HTMLSallaQuantityInputElement */ decrease(): Promise<HTMLElement>; /** * increase quantity by one. * @return HTMLSallaQuantityInputElement */ increase(): Promise<HTMLElement>; /** * set quantity by one. * @return HTMLSallaQuantityInputElement */ setValue(value: any, fireChangeEvent?: boolean): Promise<HTMLElement>; render(): any; }