Skip to content
This repository has been archived by the owner on Jun 8, 2024. It is now read-only.

Width Issue #44

Closed
Audhut opened this issue Nov 10, 2021 · 0 comments
Closed

Width Issue #44

Audhut opened this issue Nov 10, 2021 · 0 comments

Comments

@Audhut
Copy link

Audhut commented Nov 10, 2021

I have an issue with the width of the datable. The action row is usualy hidden and the horizontal scroll is also not avialble.

when i load the grid by pressing F5 all works fine

image

when i navigate to the page through links. NOTE there are no horizontal scroll and the action column is hidden/missing
image

const settings = {
    sortable: true,
    pagination: true,
    rowPerPage: 20,
    noRows: "No data found",
    columnFilter: true,
};

let data= [];

onMount(async () => {
    data= await  dataService.getAll();
    
});

<Datatable {settings} data={data}>

id
Column 1
Column 1
Column 1
Column 1
Column 1
Column 1
Column 1
Column 1
Column 1
Actions


{#each $rows as row}

{row?.Column1}
{row?.Column1}
{row?.Column1}
{row?.Column1}
{row?.Column1}
{row?.Column1}
{row?.Column1}
{row?.Column1}
{row?.Column1}
{row?.Column1}

<button
on:click={() => {
handleClick(row?.id);
}}
class="rounded-lg px-4 py-2 bg-blue-500 text-blue-100"
>View Details


{/each}

<style> th:first-child { width: 56px; } td { text-align: center; padding: 4px 8px; white-space: nowrap; } </style>
@vincjo vincjo closed this as completed Jun 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants