0
Table component showcase

Showcase all the different options you have with the table component

Created by sindre svendby964 248 days ago
Static preview only: No backend 
This is a static preview of the app and there is no backend. As such, the interactivity requiring script execution is non functional. To see the fully functional app, edit/run it in Windmil by clicking the button above.
Loading

Scripts used

export async function main(input: string) {
  const data = [
    {
      "id": 1,
      "name": "A cell with a long name",
      "age": 42,
    },
    {
      "id": 2,
      "name": "A briefer cell",
      "age": 84,
    },
  ];

  return data.filter((elem) =>
    elem.name.toLocaleLowerCase().startsWith(input.toLocaleLowerCase())
  );
}