configurable search in connections

This commit is contained in:
SPRINX0\prochazka
2024-12-17 12:26:50 +01:00
parent f5733ea2d7
commit 7a5019164a
8 changed files with 78 additions and 23 deletions

View File

@@ -8,12 +8,13 @@
export let icon = 'icon chevron-down';
export let menu;
export let narrow = false;
export let square = true;
export let disabled = false;
let domButton;
function handleClick() {
if (disabled) return;
const rect = domButton.getBoundingClientRect();
const left = rect.left;
const top = rect.bottom;
@@ -21,6 +22,6 @@
}
</script>
<InlineButton square {narrow} on:click={handleClick} bind:this={domButton} {disabled}>
<InlineButton {square} {narrow} on:click={handleClick} bind:this={domButton} {disabled}>
<FontIcon {icon} />
</InlineButton>