File size: 521 Bytes
0ad74ed
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<script lang="ts">
	import EventListeners from "$lib/components/EventListeners.svelte";
	import FunctionDoc from "$lib/components/FunctionDoc.svelte";
	export let fns = [] as any[];
	export let event_listeners = false;
</script>

{#if event_listeners}
	{#if fns && fns.length > 0}
		<div class="flex flex-col pl-12">
			<EventListeners {fns} />
			<div class="ml-12" />
		</div>
	{/if}
{:else}
	<div class="flex flex-col pl-12">
		{#each fns as fn}
			<FunctionDoc {fn} />
		{/each}
		<div class="ml-12" />
	</div>
{/if}