ui-framework-jps
Version:
A simple UI framework for state management and UI components
9 lines (8 loc) • 614 B
TypeScript
export interface CollectionViewRenderer {
createDisplayElementForCollectionItem(collectionName: string, item: any): HTMLElement;
setDisplayElementsForCollectionInContainer(containerEl: HTMLElement, collectionName: string, newState: any): void;
removeDisplayElementForCollectionItem(containerEl: HTMLElement, collectionName: string, item: any): void;
updateDisplayElementForCollectionItem(containerEl: HTMLElement, collectionName: string, item: any): void;
insertDisplayElementForCollectionItem(containerEl: HTMLElement, collectionName: string, item: any): void;
onDocumentLoaded(): void;
}