svelte-simple-datatables icon indicating copy to clipboard operation
svelte-simple-datatables copied to clipboard

Width Issue

Open Audhut opened this issue 3 years ago • 0 comments

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} </Datatable>

Audhut avatar Nov 10 '21 15:11 Audhut