Skip to content

How to replace text in header=ListTile ? #3476

Closed Answered by burhansvural
Legolaz7 asked this question in Q&A
Discussion options

You must be logged in to vote

@Legolaz7

You can further develop these codes yourself. It has been prepared quickly, just as a simple example.

exp_pnl.py

import flet as ft


class Exp_Pnl(ft.ExpansionPanel):

    def __init__(self, txt_header, list_tile_title, list_tile_subtitle, index, page):
        super().__init__()
        self.page = page
        self.btn_edit = ft.IconButton(ft.icons.EDIT, icon_color=ft.colors.BLUE, data=index,
                                      on_click=self.open_dlg_edit)
        self.btn_del = ft.IconButton(ft.icons.DELETE, icon_color=ft.colors.RED, data=index,
                                     on_click=self.delete_me)

        self.txt_header = ft.Text(f"{txt_header}")
        self.txt…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@burhansvural
Comment options

@burhansvural
Comment options

Answer selected by ndonkoHenri
@burhansvural
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants