{#if is_header}
on_sort("asc")} class:active={sort_direction === "asc"} >
{i18n("dataframe.sort_ascending")} {#if sort_direction === "asc" && sort_priority !== null}
{sort_priority}
{/if}
on_sort("desc")} class:active={sort_direction === "desc"} >
{i18n("dataframe.sort_descending")} {#if sort_direction === "desc" && sort_priority !== null}
{sort_priority}
{/if}
{i18n("dataframe.clear_sort")}
{i18n("dataframe.filter")} {#if filter_active}
1
{/if}
{i18n("dataframe.clear_filter")}
{/if} {#if !is_header && can_add_rows}
on_add_row_above()} aria-label="Add row above" >
{i18n("dataframe.add_row_above")}
on_add_row_below()} aria-label="Add row below" >
{i18n("dataframe.add_row_below")}
{#if can_delete_rows}
{i18n("dataframe.delete_row")}
{/if} {/if} {#if can_add_columns}
on_add_column_left()} aria-label="Add column to the left" >
{i18n("dataframe.add_column_left")}
on_add_column_right()} aria-label="Add column to the right" >
{i18n("dataframe.add_column_right")}
{#if can_delete_cols}
{i18n("dataframe.delete_column")}
{/if} {/if}
{#if active_filter_menu}
{/if}