Ticket #268: More style improvements, removing use of GuacAdmin.Form. UI currently broken in transition.
This commit is contained in:
1 parent
1edb05cb13
commit
f942c3c161
5 files changed
+165
-69
No files matched your search
@@ -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.
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user