onclick(e, col_idx)} onmousedown={(e) => { e.preventDefault(); e.stopPropagation(); }} title={value} >
{ if (["Enter", "Escape", "Tab"].includes(event.key)) { on_end_edit(event.key); } }} header {editable} {is_static} {i18n} {max_chars} coords={[col_idx, 0]} />
{#if sort_direction || is_filtered || is_static} {#if is_filtered} {/if} {#if sort_direction} {#if sort_direction === "asc"} {:else} {/if} {#if multi_sort && sort_priority != null} {sort_priority} {/if} {/if} {#if is_static} {/if} {/if} {#if show_menu_button} on_menu_click(e, col_idx)} /> {/if}