forked from MapComplete/MapComplete
		
	More refactoring
This commit is contained in:
		
							parent
							
								
									5d0fe31c41
								
							
						
					
					
						commit
						41e6a2c760
					
				
					 147 changed files with 1540 additions and 1797 deletions
				
			
		
							
								
								
									
										19
									
								
								UI/Base/FromHtml.svelte
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								UI/Base/FromHtml.svelte
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,19 @@ | |||
| <script lang="ts"> | ||||
|   /** | ||||
|    * Given an HTML string, properly shows this | ||||
|    */ | ||||
| 
 | ||||
|   export let src: string; | ||||
|   let htmlElem: HTMLElement; | ||||
|   $: { | ||||
|     if(htmlElem !== undefined){ | ||||
|     htmlElem.innerHTML = src | ||||
|     } | ||||
|   } | ||||
| 
 | ||||
| </script> | ||||
| 
 | ||||
| {#if src !== undefined} | ||||
|   <span bind:this={htmlElem}></span> | ||||
| {/if} | ||||
| 
 | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue