Need a pretty dropdown - not the default ugly <select> dropdown. Should be created from scratch as Wu.Dropdown class, and take content as options param on creation.
[x] create new file with Wu.Dropdown class
[x] change old dropdown for baselayers (under Data tab)
[x] change dropdowns in Styler
Dropdown should be created thus:
var pretty_dropdown = new Wu.Dropdown({
content : ['layer1', 'layer2'],
fn : this._dropdownSelected // function runs when dropdown item selected
})
New file can be put in /js/src/ext/dropdown.js, and built like this:
Wu.Dropdown = Wu.Class.extend({
// this function will run automatically on new Wu.Dropdown()
initialize : function (options) {
Wu.setOptions(this, options); // will put options in this.options
},
build : function () {
var content = this.options.content;
},
});
Need a pretty dropdown - not the default ugly
<select>
dropdown. Should be created from scratch asWu.Dropdown
class, and take content as options param on creation.Wu.Dropdown
classDropdown should be created thus:
New file can be put in
/js/src/ext/dropdown.js
, and built like this: