dara-components 1.16.19__py3-none-any.whl → 1.16.20__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- dara/components/common/card.py +3 -2
- dara/components/common/stack.py +4 -0
- dara/components/umd/dara.components.umd.js +88305 -96405
- {dara_components-1.16.19.dist-info → dara_components-1.16.20.dist-info}/METADATA +3 -3
- {dara_components-1.16.19.dist-info → dara_components-1.16.20.dist-info}/RECORD +7 -7
- {dara_components-1.16.19.dist-info → dara_components-1.16.20.dist-info}/LICENSE +0 -0
- {dara_components-1.16.19.dist-info → dara_components-1.16.20.dist-info}/WHEEL +0 -0
dara/components/common/card.py
CHANGED
|
@@ -18,6 +18,7 @@ limitations under the License.
|
|
|
18
18
|
from typing import Optional, Union
|
|
19
19
|
|
|
20
20
|
from dara.components.common.base_component import LayoutComponent
|
|
21
|
+
from dara.core import NonDataVariable
|
|
21
22
|
from dara.core.definitions import ComponentInstance
|
|
22
23
|
|
|
23
24
|
|
|
@@ -52,8 +53,8 @@ class Card(LayoutComponent):
|
|
|
52
53
|
:param align: How to align the content of the card, accepts any flexbox alignments
|
|
53
54
|
"""
|
|
54
55
|
|
|
55
|
-
subtitle: Optional[str] = None
|
|
56
|
-
title: Optional[str] = None
|
|
56
|
+
subtitle: Optional[Union[str, NonDataVariable]] = None
|
|
57
|
+
title: Optional[Union[str, NonDataVariable]] = None
|
|
57
58
|
accent: bool = False
|
|
58
59
|
|
|
59
60
|
def __init__(self, *args: Union[ComponentInstance, None], **kwargs):
|
dara/components/common/stack.py
CHANGED
|
@@ -123,6 +123,10 @@ class Stack(LayoutComponent):
|
|
|
123
123
|
|
|
124
124
|
```
|
|
125
125
|
|
|
126
|
+
Important: when using `For` component with `virtualization` enabled, do not use the Stack `scroll` argument,
|
|
127
|
+
as it is redundant and will result in unexpected behavior. The `For` component will automatically handle scrolling
|
|
128
|
+
for you.
|
|
129
|
+
|
|
126
130
|
:param direction: The direction to stack children, can be 'vertical' or 'horizontal', default is 'vertical'
|
|
127
131
|
:param collapsed: Whether to collapse the stack
|
|
128
132
|
:param justify: How to justify the content of the stack, accepts any flexbox justifications
|