Comments (4)
The condition for components is based on it's __len__
property,
dash/dash/development/base_component.py
Lines 369 to 389 in 1cb7455
It only looks for the children prop to determine this and the DataTable doesn't have a children
prop. You can workaround this by looking at bool(tb.data)
instead.
from dash.
Would it be reasonable to add an explicit __bool__
for components thatβs always True
? That could be useful for cases where a variable might be a component or might be None
.
from dash.
Yeah it would be helpful
from dash.
bool(tb.data) it's not a direct replacement of bool(tb), as it might be None and raise None value exception
from dash.
Related Issues (20)
- [BUG] No Layout Exception when using string elements when the layout is a list
- [Feature Request] tabIndex of Div should also accept number type HOT 2
- Remove LogoutButton HOT 7
- Markdown does not update code component properly after callback update. HOT 3
- [BUG] Callback running keyword doesn't work when component is not in layout
- [BUG] Environment variables from .env file ignored in Dash.run
- [BUG] `dcc.Location` doesn't refresh current page - callback does nothing when returns same value as its current state HOT 4
- [BUG] Layout as list of components does not work when layout is a function HOT 2
- Differences in dcc.Store storage_type performance with dash 2.17.1
- [BUG] DatePickerRange popup calendar additional date avaliable even with min/max date specified
- [BUG] Inconsistent behavior with dcc.Store initial values and prevent_initial_call
- [BUG] 'orthographic' mode do not save the graph aspect (uirevision - camera point of view)
- pollyfill.io vulnerability HOT 1
- [BUG] TypeError: Cannot read properties of undefined (reading 'concat') in getInputHistoryState HOT 1
- [BUG] When using keyword arguments in a background callback with Celery, no_update does not work.
- TreeMap[Feature Request]
- React 18 warning defaultProps will be removed from function components
- [BUG] Changing the selection of rows via callback does only change the frontend not the data accessed by the backend HOT 3
- Compiling a Plotly Dash app with Nuitka the Python Compiler [Feature Request] HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dash.