CLASSROOMIO-T-4: Add deadline and show it was late or early

This commit is contained in:
rotimi-best
2021-09-24 13:20:40 +03:00
parent d368fc6f8d
commit 6e24435a9f
10 changed files with 101 additions and 15 deletions
+3 -2
View File
@@ -3,16 +3,17 @@
export let placeholder;
export let value;
export let className = '';
export let onChange = () => {}; // This is to know if element is 'dirty'
export let onInput = () => {};
$: console.log(`value`, value);
</script>
<label class="block {className}">
<span class="text-gray-700">{label}</span>
<input
bind:value
on:input={onInput}
{placeholder}
type="datetime-local"
class="mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50"
on:blur={onChange}
/>
</label>