mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-13 11:29:53 +03:00
Basic PID gui
This commit is contained in:
parent
6c8322acd1
commit
0101ee329d
6 changed files with 232 additions and 21 deletions
|
@ -27,7 +27,22 @@ let ProgrammingPidCollection = function () {
|
|||
$container.show();
|
||||
};
|
||||
|
||||
|
||||
self.init = function ($element) {
|
||||
$container = $element;
|
||||
};
|
||||
|
||||
self.render = function () {
|
||||
let $table = $container.find(".pid__table")
|
||||
$table.find("tbody tr").remove();
|
||||
|
||||
for (let k in self.get()) {
|
||||
if (self.get().hasOwnProperty(k)) {
|
||||
self.get()[k].render(k, $table);
|
||||
}
|
||||
}
|
||||
|
||||
GUI.switchery();
|
||||
};
|
||||
|
||||
return self;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue