beremiz

Altered DropDown widget (#60)
py2compat
13 months ago, Dino Kosic
364f6f8139d5
Altered DropDown widget (#60)

* Altered DropDown widget: Added another mandatory path variable - selection value (depending on use case, one could prefer direct access to selection value rather than selection index); and another optional path variable - options (string variable to allow for dynamic change of options, as opposed to providing static list of options through arguments); and example with both static and dynamic dropdowns.

* Make second path variable optional, for backwards compatibility
body {
background-color: #f5faff;
}
* {
font-family: Tahoma, Verdana, sans-serif;
}
h1, h2 {
color: darkslateblue;
}
fieldset {
color: #424242;
border: 1px solid gray;
border-radius: 4px;
}
input, select, button, a {
font-size: 14px;
}
button,
input,
select,
textarea {
color: inherit;
}
legend, .freeform-form-label {
color: darkslateblue;
}
.freeform-label {
float: left;
width: 30%;
}
a {
background-color: #e9e9ed;
color: #424242;
padding: 2px 6px;
text-align: center;
text-decoration: none;
display: inline-block;
border: 1px solid gray;
border-radius: 4px;
}
a:hover, a:active {
background-color: silver;
}