Create a hyperlink.
@@ -10162,6 +10169,7 @@
Methods
label: Optional[str] = None,
path: Optional[str] = None,
disabled: Optional[bool] = None,
+ download: Optional[bool] = None,
button: Optional[bool] = None,
tooltip: Optional[str] = None,
):
@@ -10170,9 +10178,11 @@
Methods
self.path = path
"""The path or URL to link to."""
self.disabled = disabled
- """True if the link should be disable."""
+ """True if the link should be disabled."""
+ self.download = download
+ """True if the link should be used for file download."""
self.button = button
- """True if the link should be rendered as a button"""
+ """True if the link should be rendered as a button."""
self.tooltip = tooltip
"""An optional tooltip message displayed when a user clicks the help icon to the right of the component."""
@@ -10182,6 +10192,7 @@
Methods
label=self.label,
path=self.path,
disabled=self.disabled,
+ download=self.download,
button=self.button,
tooltip=self.tooltip,
)
@@ -10192,17 +10203,20 @@
Methods
__d_label: Any = __d.get('label')
__d_path: Any = __d.get('path')
__d_disabled: Any = __d.get('disabled')
+ __d_download: Any = __d.get('download')
__d_button: Any = __d.get('button')
__d_tooltip: Any = __d.get('tooltip')
label: Optional[str] = __d_label
path: Optional[str] = __d_path
disabled: Optional[bool] = __d_disabled
+ download: Optional[bool] = __d_download
button: Optional[bool] = __d_button
tooltip: Optional[str] = __d_tooltip
return Link(
label,
path,
disabled,
+ download,
button,
tooltip,
)
@@ -10224,17 +10238,20 @@
Static methods
__d_label: Any = __d.get('label')
__d_path: Any = __d.get('path')
__d_disabled: Any = __d.get('disabled')
+ __d_download: Any = __d.get('download')
__d_button: Any = __d.get('button')
__d_tooltip: Any = __d.get('tooltip')
label: Optional[str] = __d_label
path: Optional[str] = __d_path
disabled: Optional[bool] = __d_disabled
+ download: Optional[bool] = __d_download
button: Optional[bool] = __d_button
tooltip: Optional[str] = __d_tooltip
return Link(
label,
path,
disabled,
+ download,
button,
tooltip,
)
@@ -10245,11 +10262,15 @@
Instance variables
var button
-
-
True if the link should be rendered as a button
+True if the link should be rendered as a button.
var disabled
-
-
True if the link should be disable.
+True if the link should be disabled.
+
+var download
+-
+
True if the link should be used for file download.
var label
-
@@ -10281,6 +10302,7 @@
Methods
label=self.label,
path=self.path,
disabled=self.disabled,
+ download=self.download,
button=self.button,
tooltip=self.tooltip,
)
@@ -18485,6 +18507,7 @@ Link
button
disabled
+download
dump
label
load
diff --git a/docs/ui.html b/docs/ui.html
index bbcaa61ee5..9cd902f320 100644
--- a/docs/ui.html
+++ b/docs/ui.html
@@ -1056,6 +1056,7 @@ Module h2o_q.ui
label: Optional[str] = None,
path: Optional[str] = None,
disabled: Optional[bool] = None,
+ download: Optional[bool] = None,
button: Optional[bool] = None,
tooltip: Optional[str] = None,
) -> Component:
@@ -1068,8 +1069,9 @@ Module h2o_q.ui
Args:
label: The text to be displayed. If blank, the `path` is used as the label.
path: The path or URL to link to.
- disabled: True if the link should be disable.
- button: True if the link should be rendered as a button
+ disabled: True if the link should be disabled.
+ download: True if the link should be used for file download.
+ button: True if the link should be rendered as a button.
tooltip: An optional tooltip message displayed when a user clicks the help icon to the right of the component.
Returns:
A `h2o_q.types.Link` instance.
@@ -1078,6 +1080,7 @@ Module h2o_q.ui
label,
path,
disabled,
+ download,
button,
tooltip,
))
@@ -4054,7 +4057,7 @@ Returns
-def link(label: Union[str, NoneType] = None, path: Union[str, NoneType] = None, disabled: Union[bool, NoneType] = None, button: Union[bool, NoneType] = None, tooltip: Union[str, NoneType] = None) ‑> Component
+def link(label: Union[str, NoneType] = None, path: Union[str, NoneType] = None, disabled: Union[bool, NoneType] = None, download: Union[bool, NoneType] = None, button: Union[bool, NoneType] = None, tooltip: Union[str, NoneType] = None) ‑> Component
-
Create a hyperlink.
@@ -4068,9 +4071,11 @@
Args
path
- The path or URL to link to.
disabled
-
- True if the link should be disable.
+
- True if the link should be disabled.
+
download
+
- True if the link should be used for file download.
button
-
- True if the link should be rendered as a button
+
- True if the link should be rendered as a button.
tooltip
- An optional tooltip message displayed when a user clicks the help icon to the right of the component.
@@ -4084,6 +4089,7 @@
Returns
label: Optional[str] = None,
path: Optional[str] = None,
disabled: Optional[bool] = None,
+ download: Optional[bool] = None,
button: Optional[bool] = None,
tooltip: Optional[str] = None,
) -> Component:
@@ -4096,8 +4102,9 @@
Returns
Args:
label: The text to be displayed. If blank, the `path` is used as the label.
path: The path or URL to link to.
- disabled: True if the link should be disable.
- button: True if the link should be rendered as a button
+ disabled: True if the link should be disabled.
+ download: True if the link should be used for file download.
+ button: True if the link should be rendered as a button.
tooltip: An optional tooltip message displayed when a user clicks the help icon to the right of the component.
Returns:
A `h2o_q.types.Link` instance.
@@ -4106,6 +4113,7 @@
Returns
label,
path,
disabled,
+ download,
button,
tooltip,
))
diff --git a/py/docs/index.md b/py/docs/index.md
index 632bf7c052..112cd7c57b 100644
--- a/py/docs/index.md
+++ b/py/docs/index.md
@@ -1,6 +1,10 @@
# Change Log
+- [v0.1.3](https://github.com/h2oai/qd/releases/tag/v0.1.3) - Aug 10, 2020
+ - Fixed
+ - `h2o_q.ui.link()` now has a `download` attribute to work around a [Firefox bug](https://bugzilla.mozilla.org/show_bug.cgi?id=858538).
+ - Race condition in the interactive tour that caused some examples to not preview properly.
- [v0.1.2](https://github.com/h2oai/qd/releases/tag/v0.1.2) - Aug 7, 2020
- Added
- API for `h2o_q.core.Expando` copy, clone and item/attribute deletion.
diff --git a/py/examples/requirements.txt b/py/examples/requirements.txt
index d467258fbd..d5528ad266 100644
--- a/py/examples/requirements.txt
+++ b/py/examples/requirements.txt
@@ -6,4 +6,4 @@ bokeh
matplotlib
altair
vega-datasets
-h2o_q==0.1.2
+h2o_q==0.1.3
diff --git a/py/setup.py b/py/setup.py
index d57d4693cb..98564cea14 100644
--- a/py/setup.py
+++ b/py/setup.py
@@ -5,7 +5,7 @@
setuptools.setup(
name='h2o_q',
- version='0.1.2',
+ version='0.1.3',
author='Prithvi Prabhu',
author_email='prithvi@h2o.ai',
description='Python driver for H2O Q Realtime Apps',