add Sort Function
This commit is contained in:
@@ -2,7 +2,8 @@
|
||||
export let value: number = 0; // The raw number
|
||||
export let label: string = ""; // Field label
|
||||
export let onInput: (() => void) | null = null; // Optional extra handler
|
||||
|
||||
export let disabled: boolean = false;
|
||||
export let className: string = "";
|
||||
let formatted = "";
|
||||
|
||||
// Format whenever value changes
|
||||
@@ -26,7 +27,8 @@
|
||||
<input
|
||||
type="text"
|
||||
bind:value={formatted}
|
||||
placeholder="Rp 0"
|
||||
placeholder="Rp 0"
|
||||
class="w-full border p-2 rounded ${className}"
|
||||
on:input={handleInput}
|
||||
disabled={disabled}
|
||||
/>
|
||||
Reference in New Issue
Block a user