ng-shopping-cart
Version:
An Angular component library to create shopping carts
27 lines (26 loc) • 734 B
TypeScript
import { EventEmitter } from '@angular/core';
import { DropdownValue } from '../../interfaces/dropdown-value';
import { AddToCartType } from '../../types';
/**
* An editor to change the quantity of an item to add to the cart.
* @ignore
*/
export declare class AddToCartEditorComponent {
/**
* The type of editor to display.
*/
type: AddToCartType;
/**
* A list of values to display in the dropdown editor.
*/
dropdown: DropdownValue[];
/**
* The value to display in the editor
*/
value: number;
/**
* Emits a the value of the editor when the user changes it
*/
valueChange: EventEmitter<number>;
changeValue(value: any): void;
}