update comment
This commit is contained in:
@@ -57,7 +57,7 @@ THUMBSIZE=256
|
||||
# list: for the options
|
||||
# js: optional extra javascript to run onChange (so far used to reset offset when choosing to change ordering of files being viewed)
|
||||
# add_class: some class overrides, usually to format margins/padding/format/text size,etc.
|
||||
# vals: in case the value is not the same as the name in the list provided... E.g. list={'yes', 'no'}, vals={1,0}
|
||||
# vals: in case the value is not the same as the name in the list provided... E.g. list={'yes', 'no'}, vals={'0':yes,'1':no}
|
||||
def CreateSelect(name, selected, list, js="", add_class="", vals={} ):
|
||||
str = f'<select id="{name}" name="{name}" class="{add_class} sm-txt bg-white text-info border-info border-1 p-1" onChange="{js};this.form.submit()">'
|
||||
for idx, el in enumerate(list):
|
||||
|
||||
Reference in New Issue
Block a user