{#if edit && datatype !== "bool"} e.stopPropagation()} onclick={(e: MouseEvent) => e.stopPropagation()} use:use_focus use:use_autosize onkeydown={handle_keydown} class:pad_left /> {/if} {#if datatype === "bool" && typeof value === "boolean"} {:else} e.preventDefault()} style={styling} data-editable={editable} data-max-chars={max_chars} data-expanded={edit} placeholder=" " class:text={datatype === "str"} class:wrap={wrap_text} > {#if datatype === "image" && components.image} {@const ImageComponent = components.image} {} }} /> {:else if datatype === "html"} {@html display_text} {:else if datatype === "markdown"} {:else} {display_text} {/if} {/if} {#if show_selection_buttons && coords && on_select_column && on_select_row} on_select_column(coords[1])} /> on_select_row(coords[0])} /> {/if}