Added comment indicators

This commit is contained in:
Maro
2018-12-08 10:32:55 +00:00
parent c4548249be
commit c45c8488f5
3 changed files with 32 additions and 0 deletions
+2
View File
@@ -191,6 +191,7 @@ SQL.Row.prototype.expand = function() {
this.buildEdit(); this.buildEdit();
this.load(); this.load();
this.redraw(); this.redraw();
this.dom.container.classList.add('expanded');
this.dom.name.focus(); this.dom.name.focus();
this.dom.name.select(); this.dom.name.select();
} }
@@ -198,6 +199,7 @@ SQL.Row.prototype.expand = function() {
SQL.Row.prototype.collapse = function() { SQL.Row.prototype.collapse = function() {
if (!this.expanded) { return; } if (!this.expanded) { return; }
this.expanded = false; this.expanded = false;
this.dom.container.classList.remove('expanded');
var data = { var data = {
type: this.dom.type.selectedIndex, type: this.dom.type.selectedIndex,
+2
View File
@@ -25,6 +25,8 @@ SQL.Table.prototype._build = function() {
var thead = OZ.DOM.elm("thead"); var thead = OZ.DOM.elm("thead");
var tr = OZ.DOM.elm("tr"); var tr = OZ.DOM.elm("tr");
this.dom.title = OZ.DOM.elm("td", {className:"title", colSpan:2}); this.dom.title = OZ.DOM.elm("td", {className:"title", colSpan:2});
console.log(this.getComment());
OZ.DOM.append( OZ.DOM.append(
[this.dom.container, this.dom.content], [this.dom.container, this.dom.content],
+28
View File
@@ -145,6 +145,34 @@ body {
display: inline-block; display: inline-block;
} }
.table thead td[title]:after{
content: '';
position: absolute;
top: 0;
right: 0;
border-color: royalblue;
border-style: solid;
border-width: 5px;
border-bottom-color: transparent;
border-left-color: transparent;
}
.table tbody tr {
position: relative;
}
.table tbody[title]:not(.expanded):not([title=""]) tr:after{
content: '';
position: absolute;
top: 0;
right: 0;
border-color: royalblue;
border-style: solid;
border-width: 5px;
border-bottom-color: transparent;
border-left-color: transparent;
}
.primary { .primary {
font-weight: bold; font-weight: bold;
} }