Add 'nodescriptions' property to the TableSection class that allows
to disable displaying table header row with descriptions.
Signed-off-by: Anton Kikin <a.kikin@tano-systems.com>
(cherry picked from commit
7585e5c95adc69a6e86ae19dda5dfb60557cefdb)
* @default false
*/
+ /**
+ * If set to `true`, the header row with the options descriptions will
+ * not be displayed. By default, descriptions row is automatically displayed
+ * when at least one option has a description.
+ *
+ * @name LuCI.form.TableSection.prototype#nodescriptions
+ * @type boolean
+ * @default false
+ */
+
/**
* The `TableSection` implementation does not support option tabbing, so
* its implementation of `tab()` will always throw an exception when
trEls.appendChild(trEl);
}
- if (has_descriptions) {
+ if (has_descriptions && !this.nodescriptions) {
var trEl = E('div', {
'class': 'tr cbi-section-table-descr ' + anon_class
});