mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-25 17:25:14 +03:00
Basic Logic Conditions UI
This commit is contained in:
parent
cdf7b82108
commit
e7d26a5759
4 changed files with 27 additions and 3 deletions
4
main.css
4
main.css
|
@ -1075,6 +1075,10 @@ dialog {
|
|||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
.tab_subtitle--no-border {
|
||||
border: none;
|
||||
}
|
||||
|
||||
/* Note */
|
||||
.note {
|
||||
background-color: #fff7cd;
|
||||
|
|
1
main.js
1
main.js
|
@ -248,7 +248,6 @@ $(document).ready(function () {
|
|||
TABS.advanced_tuning.initialize(content_ready);
|
||||
break;
|
||||
case 'programming':
|
||||
console.log(1);
|
||||
TABS.programming.initialize(content_ready);
|
||||
break;
|
||||
case 'cli':
|
||||
|
|
|
@ -1,5 +1,24 @@
|
|||
<div class="tab-configuration tab-programming toolbar_fixed_bottom">
|
||||
<div class="content_wrapper" id="programming-main-content">
|
||||
<div class="tab_title" data-i18n="tabProgramming">Programming</div>
|
||||
|
||||
<div id="logic-wrapper">
|
||||
<div class="tab_subtitle tab_subtitle--no-border" data-i18n="tabLogicConditions"></div>
|
||||
<table class="mixer-table logic__table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width: 50px" data-i18n="logicId"></th>
|
||||
<th style="width: 80px" data-i18n="logicEnabled"></th>
|
||||
<th style="width: 120px" data-i18n="logicOperation"></th>
|
||||
<th data-i18n="logicOperandA"></th>
|
||||
<th data-i18n="logicOperandB"></th>
|
||||
<th data-i18n="logicFlags"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
|
@ -38,13 +38,15 @@ TABS.programming.initialize = function (callback, scrollPosition) {
|
|||
}
|
||||
|
||||
function loadHtml() {
|
||||
console.log(2);
|
||||
GUI.load("./tabs/programming.html", processHtml);
|
||||
}
|
||||
|
||||
function processHtml() {
|
||||
console.log(3);
|
||||
|
||||
LOGIC_CONDITIONS.init($('#logic-wrapper'));
|
||||
LOGIC_CONDITIONS.render();
|
||||
|
||||
localize();
|
||||
GUI.content_ready(callback);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue