From e67bdb98cd230180fa19c2bd1e944b3078e19e52 Mon Sep 17 00:00:00 2001 From: Damien De Paoli Date: Thu, 20 Feb 2025 15:48:39 +1100 Subject: [PATCH] allow passing of options into display class to remove hardcoding in html template, to support more than one select/drop-down --- disp.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/disp.py b/disp.py index 948656b..4f65fe9 100644 --- a/disp.py +++ b/disp.py @@ -22,11 +22,12 @@ class FP_VAR(FP): dot-notation of fields """ - def __init__(self, label, varname, display='', cl='col-sm-auto', datevarname=''): + def __init__(self, label, varname, display='', cl='col-sm-auto', datevarname='', opts=None ): ### Var Attributes -- note, simple class, no methods ### self.label=label self.varname=varname self.display=display self.cl=cl self.datevarname=datevarname + self.opts=opts return