forked from MapComplete/MapComplete
		
	Add further support for special UI-elements; add documentation, fix a few bugs
This commit is contained in:
		
							parent
							
								
									3ab3cef249
								
							
						
					
					
						commit
						07e611bf10
					
				
					 12 changed files with 113 additions and 55 deletions
				
			
		|  | @ -11,9 +11,9 @@ export class ImageCarousel extends TagDependantUIElement { | |||
| 
 | ||||
|     public readonly slideshow: SlideShow; | ||||
| 
 | ||||
|     constructor(tags: UIEventSource<any>) { | ||||
|     constructor(tags: UIEventSource<any>, imagePrefix: string = "image", loadSpecial: boolean =true) { | ||||
|         super(tags); | ||||
|         const searcher : UIEventSource<{url:string}[]> = new ImageSearcher(tags); | ||||
|         const searcher : UIEventSource<{url:string}[]> = new ImageSearcher(tags, imagePrefix, loadSpecial); | ||||
|         const uiElements = searcher.map((imageURLS: {key: string, url:string}[]) => { | ||||
|             const uiElements: UIElement[] = []; | ||||
|             for (const url of imageURLS) { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue