CLASSROOMIO-T-214: Add comments feature in lesson

This commit is contained in:
Rotimi Best
2023-10-08 15:34:37 +01:00
parent 0f01e8e574
commit 4f783cbc7c
28 changed files with 411 additions and 398 deletions
+9 -5
View File
@@ -1,22 +1,26 @@
<script>
<script lang="ts">
import ToolTip from '../ToolTip/index.svelte';
export let onClick = () => {};
export let onClick = (v: string) => {};
export let stopPropagation = false;
export let disabled = false;
export let selected = false;
export let buttonClassName = '';
export let contained = false;
export let value = '';
export let type = 'button';
export let type: 'button' | 'submit' | 'reset' | null | undefined = 'button';
export let size = 'large';
export let color = '';
export let toolTipProps = {
export let toolTipProps: {
title: string;
hotkeys: string[];
direction?: string;
} = {
title: '',
hotkeys: [],
direction: ''
};
function handleClick(e) {
function handleClick(e: Event) {
if (stopPropagation) {
e.stopPropagation();
}