zauberzeug / nicegui

Create web-based user interfaces with Python. The nice way.
https://nicegui.io
MIT License
9.77k stars 580 forks source link

list is no longer a compenent? #2769

Closed Smug246 closed 6 months ago

Smug246 commented 6 months ago

Description

https://nicegui.io/documentation/section_page_layout#list

ui.list(), ui.item_section() and ui.item_label() no longer supported?

falkoschindler commented 6 months ago

@Smug246 What makes you think they are no longer supported?

Smug246 commented 6 months ago
  File "c:\Users\jude\Desktop\Stuff\Coding\Products I Sell\Apps\Banks Booking System\test\test.py", line 3, in <module>
    with ui.list():
         ^^^^^^^
AttributeError: module 'nicegui.ui' has no attribute 'list'

this comes up for all 3 of those elements. and i can't find them in the element list

Smug246 commented 6 months ago

there not in ui.py

__all__ = [
    'element',
    'aggrid',
    'audio',
    'avatar',
    'badge',
    'button',
    'card',
    'card_actions',
    'card_section',
    'carousel',
    'carousel_slide',
    'chart',
    'chat_message',
    'checkbox',
    'code',
    'color_input',
    'color_picker',
    'colors',
    'column',
    'context_menu',
    'dark_mode',
    'date',
    'dialog',
    'echart',
    'editor',
    'expansion',
    'grid',
    'highchart',
    'html',
    'icon',
    'image',
    'input',
    'interactive_image',
    'joystick',
    'json_editor',
    'keyboard',
    'knob',
    'label',
    'leaflet',
    'line_plot',
    'link',
    'link_target',
    'log',
    'markdown',
    'menu',
    'menu_item',
    'mermaid',
    'notification',
    'number',
    'pagination',
    'plotly',
    'circular_progress',
    'linear_progress',
    'pyplot',
    'query',
    'radio',
    'row',
    'scene',
    'scroll_area',
    'select',
    'separator',
    'slider',
    'space',
    'spinner',
    'splitter',
    'step',
    'stepper',
    'stepper_navigation',
    'switch',
    'table',
    'tab',
    'tab_panel',
    'tab_panels',
    'tabs',
    'textarea',
    'time',
    'timer',
    'timeline',
    'timeline_entry',
    'toggle',
    'tooltip',
    'tree',
    'upload',
    'video',
    'download',
    'add_body_html',
    'add_head_html',
    'run_javascript',
    'notify',
    'open',
    'page_title',
    'refreshable',
    'refreshable_method',
    'state',
    'update',
    'page',
    'drawer',
    'footer',
    'header',
    'left_drawer',
    'on',
    'page_sticky',
    'right_drawer',
    'run',
    'run_with',
]

from .element import Element as element
from .elements.aggrid import AgGrid as aggrid
from .elements.audio import Audio as audio
from .elements.avatar import Avatar as avatar
from .elements.badge import Badge as badge
from .elements.button import Button as button
from .elements.card import Card as card
from .elements.card import CardActions as card_actions
from .elements.card import CardSection as card_section
from .elements.carousel import Carousel as carousel
from .elements.carousel import CarouselSlide as carousel_slide
from .elements.chart import chart
from .elements.chat_message import ChatMessage as chat_message
from .elements.checkbox import Checkbox as checkbox
from .elements.code import Code as code
from .elements.color_input import ColorInput as color_input
from .elements.color_picker import ColorPicker as color_picker
from .elements.colors import Colors as colors
from .elements.column import Column as column
from .elements.context_menu import ContextMenu as context_menu
from .elements.dark_mode import DarkMode as dark_mode
from .elements.date import Date as date
from .elements.dialog import Dialog as dialog
from .elements.echart import EChart as echart
from .elements.editor import Editor as editor
from .elements.expansion import Expansion as expansion
from .elements.grid import Grid as grid
from .elements.highchart import highchart
from .elements.html import Html as html
from .elements.icon import Icon as icon
from .elements.image import Image as image
from .elements.input import Input as input  # pylint: disable=redefined-builtin
from .elements.interactive_image import InteractiveImage as interactive_image
from .elements.joystick import Joystick as joystick
from .elements.json_editor import JsonEditor as json_editor
from .elements.keyboard import Keyboard as keyboard
from .elements.knob import Knob as knob
from .elements.label import Label as label
from .elements.leaflet import Leaflet as leaflet
from .elements.line_plot import LinePlot as line_plot
from .elements.link import Link as link
from .elements.link import LinkTarget as link_target
from .elements.log import Log as log
from .elements.markdown import Markdown as markdown
from .elements.menu import Menu as menu
from .elements.menu import MenuItem as menu_item
from .elements.mermaid import Mermaid as mermaid
from .elements.notification import Notification as notification
from .elements.number import Number as number
from .elements.pagination import Pagination as pagination
from .elements.plotly import Plotly as plotly
from .elements.progress import CircularProgress as circular_progress
from .elements.progress import LinearProgress as linear_progress
from .elements.pyplot import Pyplot as pyplot
from .elements.query import Query as query
from .elements.radio import Radio as radio
from .elements.row import Row as row
from .elements.scene import Scene as scene
from .elements.scroll_area import ScrollArea as scroll_area
from .elements.select import Select as select
from .elements.separator import Separator as separator
from .elements.slider import Slider as slider
from .elements.space import Space as space
from .elements.spinner import Spinner as spinner
from .elements.splitter import Splitter as splitter
from .elements.stepper import Step as step
from .elements.stepper import Stepper as stepper
from .elements.stepper import StepperNavigation as stepper_navigation
from .elements.switch import Switch as switch
from .elements.table import Table as table
from .elements.tabs import Tab as tab
from .elements.tabs import TabPanel as tab_panel
from .elements.tabs import TabPanels as tab_panels
from .elements.tabs import Tabs as tabs
from .elements.textarea import Textarea as textarea
from .elements.time import Time as time
from .elements.timeline import Timeline as timeline
from .elements.timeline import TimelineEntry as timeline_entry
from .elements.timer import Timer as timer
from .elements.toggle import Toggle as toggle
from .elements.tooltip import Tooltip as tooltip
from .elements.tree import Tree as tree
from .elements.upload import Upload as upload
from .elements.video import Video as video
from .functions.download import download
from .functions.html import add_body_html, add_head_html
from .functions.javascript import run_javascript
from .functions.notify import notify
from .functions.on import on
from .functions.open import open  # pylint: disable=redefined-builtin
from .functions.page_title import page_title
from .functions.refreshable import refreshable, refreshable_method, state
from .functions.update import update
from .page import page
from .page_layout import Drawer as drawer
from .page_layout import Footer as footer
from .page_layout import Header as header
from .page_layout import LeftDrawer as left_drawer
from .page_layout import PageSticky as page_sticky
from .page_layout import RightDrawer as right_drawer
from .ui_run import run
from .ui_run_with import run_with
falkoschindler commented 6 months ago

Just in case, I just downloaded the most recent release from https://pypi.org/project/nicegui/ and checked ui.py: All list and item elements are there.

Please check your NiceGUI version.

Smug246 commented 6 months ago

ah yes i was on 1.4.11 my bad. didnt realise there had been that many updates since then.