mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-07 21:51:23 +00:00
Ticket #268: More style improvements, removing use of GuacAdmin.Form. UI currently broken in transition.
This commit is contained in:
@@ -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