-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
component (ShoppingList); Sveltstrap for CSS library was used
- Loading branch information
1 parent
c62574a
commit 3b9a40f
Showing
5 changed files
with
119 additions
and
42 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,12 @@ | |
|
||
<title>Svelte app</title> | ||
|
||
<!-- Sveltstrap --> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"> | ||
|
||
<!-- Icon --> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css"> | ||
|
||
<link rel='stylesheet' href='global.css'> | ||
<link rel='stylesheet' href='./build/bundle.css'> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<script> | ||
import { createEventDispatcher } from "svelte"; | ||
import { Icon, Input } from "sveltestrap"; | ||
const dispatch = createEventDispatcher(); | ||
export let bought; | ||
export let qty; | ||
export let name; | ||
export let price; | ||
export let total; | ||
</script> | ||
|
||
<tr> | ||
<td><Input type="checkbox" bind:checked={bought} /></td> | ||
<td><span>{qty}</span></td> | ||
<td><span>{name}</span></td> | ||
<td><span>{price}</span></td> | ||
<td><span>{total}</span></td> | ||
<td | ||
><button class="trash" on:click={() => dispatch("deletePdt")} | ||
><Icon name="trash-fill" /></button | ||
></td | ||
> | ||
</tr> | ||
|
||
<style> | ||
.trash { | ||
padding: 0.2rem; | ||
border: none; | ||
background-color: white; | ||
} | ||
</style> |
3b9a40f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs: