Skip to content
Discussion options

You must be logged in to vote

Put table into a clipping Container:

import flet as ft


def main(page: ft.Page):
    page.padding = 60
    page.window_width = 900
    page.window_height = 350
    page.window_center()
    page.add(
        ft.Container(
            ft.DataTable(
                border=ft.border.all(1, "#333333"),
                columns=[
                    ft.DataColumn(ft.Text("First name")),
                    ft.DataColumn(ft.Text("Last name")),
                    ft.DataColumn(ft.Text("Age"), numeric=True),
                    ft.DataColumn(ft.Text("Address")),
                    ft.DataColumn(ft.Text("Email Address")),
                ],
                rows=[
                    ft.DataRow(
 …

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@holvi-mikael
Comment options

@AaronCatolico
Comment options

@AaronCatolico
Comment options

Answer selected by AaronCatolico
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
help wanted Extra attention is needed
3 participants