2021-04-15 15:59:52 +02:00
|
|
|
<!--
|
|
|
|
Copyright: Ankitects Pty Ltd and contributors
|
|
|
|
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|
|
|
-->
|
2021-03-29 14:54:10 +02:00
|
|
|
<script lang="typescript">
|
2021-03-30 18:57:50 +02:00
|
|
|
import SquareButton from "./SquareButton.svelte";
|
2021-03-29 14:54:10 +02:00
|
|
|
|
2021-04-09 22:02:34 +02:00
|
|
|
export let id: string;
|
2021-03-29 21:05:30 +02:00
|
|
|
export let className = "";
|
2021-04-22 14:54:29 +02:00
|
|
|
export let tooltip: string | undefined;
|
2021-04-22 14:18:48 +02:00
|
|
|
export let shortcutLabel: string | undefined;
|
2021-04-20 03:24:08 +02:00
|
|
|
export let icon: string;
|
2021-03-30 18:57:50 +02:00
|
|
|
|
2021-04-01 18:55:34 +02:00
|
|
|
export let onClick: (event: MouseEvent) => void;
|
2021-04-20 03:24:08 +02:00
|
|
|
|
|
|
|
export let disables = true;
|
|
|
|
export let dropdownToggle = false;
|
2021-03-29 14:54:10 +02:00
|
|
|
</script>
|
|
|
|
|
2021-04-22 14:18:48 +02:00
|
|
|
<SquareButton
|
|
|
|
{id}
|
|
|
|
{className}
|
|
|
|
{tooltip}
|
|
|
|
{shortcutLabel}
|
|
|
|
{onClick}
|
|
|
|
{disables}
|
|
|
|
{dropdownToggle}
|
|
|
|
on:mount>
|
2021-03-30 00:51:44 +02:00
|
|
|
{@html icon}
|
2021-03-30 18:57:50 +02:00
|
|
|
</SquareButton>
|