Commit 8b3e64eb authored by Michael Wagner's avatar Michael Wagner
Browse files

dropdown with all projects

parent 920181b7
......@@ -7,19 +7,27 @@ function HelloWorldView(helloWorldController, helloWorldModel) {
var $container = views.content;
var _this = this;
// create a button
var $createNewBtn = FormUtil.getButtonWithText('Created Button', function () {
console.log("CLICK!");
});
$header.append($createNewBtn);
// create and fill the dropdown
let dropdownVals = []
mainController.serverFacade.openbisServer.listProjects(function (data) {
console.log("data.result", data.result)
data.result.forEach(function (project) {
console.log(project.code);
console.log(project.code)
dropdownVals.push({label: project.code, value: project.code});
});
console.log("huh", dropdownVals)
let $createNewDropDown = FormUtil.getPlainDropdown(dropdownVals);
$header.append($createNewDropDown);
});
};
}
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment