-
Notifications
You must be signed in to change notification settings - Fork 644
Scrollable NavigationRail #1923
Copy link
Copy link
Open
Labels
feature requestSuggestion/Request for additional featureSuggestion/Request for additional feature
Milestone
Description
I'm looking for a way to place a scroll in the navigation rail, for destinations.
class NavRailControl(ft.UserControl):
self.destinations = []
for lista_info in listas_Title:
list_title = lista_info
self.destinations.append(ft.NavigationRailDestination(
icon=ft.icons.TABLE_CHART,
selected_icon=ft.icons.PLAYLIST_ADD_CHECK_ROUNDED,
label=list_title
))
destinos = ft.Column(controls=[self.destinations])
self.top_nav_rail = ft.NavigationRail(
label_type="all",
on_change=self.handle_change,
destinations=destinos,
bgcolor = "#1b2f48",
extended=True,
min_width=100,
min_extended_width=250,
)
def build(self):
view = ft.Container(self.top_nav_rail)
return view
My suggestion is to be able to place the destinations in a column. destinos = ft.Column(controls=[self.destinations])
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
feature requestSuggestion/Request for additional featureSuggestion/Request for additional feature
Type
Projects
Status
👀 In review