Ticket #268: More style improvements, removing use of GuacAdmin.Form. UI currently broken in transition.

This commit is contained in:
Michael Jumper
2013-02-13 13:37:00 -08:00
parent 1edb05cb13
commit f942c3c161
5 changed files with 165 additions and 69 deletions

View File

@@ -46,6 +46,23 @@ GuacUI.createChildElement = function(parent, tagname, classname) {
return element;
};
/**
* Creates a new row within the given table having a single header cell
* with the given title, and a single value cell. The value cell is returned.
*/
GuacUI.createTabulatedContainer = function(table, title) {
// Create elements
var row = GuacUI.createChildElement(table, "tr");
var header = GuacUI.createChildElement(row, "th");
var cell = GuacUI.createChildElement(row, "td");
// Set title, return cell
header.textContent = title;
return cell;
};
/**
* Adds the given CSS class to the given element.
*/