From 89cd2199981dbdb5c6ff3096050ab8d5a52fcb5d Mon Sep 17 00:00:00 2001 From: Andrew <15331990+ahuang11@users.noreply.github.com> Date: Tue, 5 Sep 2023 16:36:47 -0700 Subject: [PATCH 1/2] Add bounds to limit --- lumen/views/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lumen/views/base.py b/lumen/views/base.py index 3307e0e02..1a9fde7ed 100644 --- a/lumen/views/base.py +++ b/lumen/views/base.py @@ -70,7 +70,7 @@ class View(MultiTypeComponent, Viewer): Whether to display a loading indicator on the View when the Pipeline is refreshing the data.""") - limit = param.Integer(default=None, doc=""" + limit = param.Integer(default=None, bounds=(1, None), doc=""" Limits the number of rows that are rendered.""") pipeline = param.ClassSelector(class_=Pipeline, doc=""" From ba16523326e9d5571db61ff0fa614dd836ab681b Mon Sep 17 00:00:00 2001 From: Philipp Rudiger Date: Tue, 31 Oct 2023 22:52:34 +0100 Subject: [PATCH 2/2] Update lumen/views/base.py --- lumen/views/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lumen/views/base.py b/lumen/views/base.py index 1a9fde7ed..6a4877028 100644 --- a/lumen/views/base.py +++ b/lumen/views/base.py @@ -70,7 +70,7 @@ class View(MultiTypeComponent, Viewer): Whether to display a loading indicator on the View when the Pipeline is refreshing the data.""") - limit = param.Integer(default=None, bounds=(1, None), doc=""" + limit = param.Integer(default=None, bounds=(0, None), doc=""" Limits the number of rows that are rendered.""") pipeline = param.ClassSelector(class_=Pipeline, doc="""