Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/iNavFlight/inav-configurator.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorPawel Spychalski (DzikuVx) <pspychalski@gmail.com>2019-03-10 17:14:31 +0300
committerPawel Spychalski (DzikuVx) <pspychalski@gmail.com>2019-03-10 17:14:31 +0300
commit2946fe5c2a2c4e183078330d23bea2260422c5ac (patch)
treed40a89438101bb926ff15d78b6c9f90798bbda37 /js
parent3e1e38f6d290d752518b249f29473daf48f805fb (diff)
Render basic table
Diffstat (limited to 'js')
-rw-r--r--js/logicCondition.js15
-rw-r--r--js/logicConditionsCollection.js10
2 files changed, 25 insertions, 0 deletions
diff --git a/js/logicCondition.js b/js/logicCondition.js
index 93a51101..57651f76 100644
--- a/js/logicCondition.js
+++ b/js/logicCondition.js
@@ -59,5 +59,20 @@ let LogicCondition = function (enabled, operation, operandAType, operandAValue,
flags = data;
};
+
+ self.render = function ($container) {
+
+ $container.find('tbody').append('<tr>\
+ <td class="logic_cell__index"></td>\
+ <td class="logic_cell__enabled"></td>\
+ <td class="logic_cell__operation"></td>\
+ <td class="logic_cell__operandA"></td>\
+ <td class="logic_cell__operandB"></td>\
+ <td class="logic_cell__flags"></td>\
+ </tr>\
+ ');
+
+ }
+
return self;
}; \ No newline at end of file
diff --git a/js/logicConditionsCollection.js b/js/logicConditionsCollection.js
index a94c67d0..73d47527 100644
--- a/js/logicConditionsCollection.js
+++ b/js/logicConditionsCollection.js
@@ -21,5 +21,15 @@ let LogicConditionsCollection = function () {
return data.length
}
+ self.render = function ($container) {
+
+ for (let k in self.get()) {
+ if (self.get().hasOwnProperty(k)) {
+ self.get()[k].render($container);
+ }
+ }
+
+ }
+
return self;
}; \ No newline at end of file