nopaque.resource_lists.TesseractOCRPipelineModelList = class TesseractOCRPipelineModelList extends nopaque.resource_lists.ResourceList { static htmlClass = 'tesseract-ocr-pipeline-model-list'; constructor(listContainerElement, options = {}) { super(listContainerElement, options); this.listjs.list.addEventListener('change', (event) => {this.onChange(event)}); this.listjs.list.addEventListener('click', (event) => {this.onClick(event)}); this.isInitialized = false; this.userId = listContainerElement.dataset.userId; if (this.userId === undefined) {return;} app.liveUserRegistry.addEventListener('patch', (event) => { if (this.isInitialized) {this.onPatch(event.detail);} }); app.liveUserRegistry.get(this.userId).then((user) => { this.add(Object.values(user.tesseract_ocr_pipeline_models)); this.isInitialized = true; }); } get item() { return (values) => { return `
Title and Description | Publisher | Availability |
---|