protected override Element CreateNode() { label = Browser.Document.CreateElement("span"); var span = Browser.Document.CreateElement("span"); checkbox = Browser.Document.CreateElement("input"); checkbox.SetAttribute("type", "checkbox"); checkbox.AddEventListener("change", OnJsChanged); span.AppendChild(checkbox); span.AppendChild(label); return span; }
private Element GetTopCell() { if (topCell == null) { topCell = Browser.Document.CreateElement("td"); topCell.SetAttribute("colspan", "3"); GetTopRow().AppendChild(topCell); topCellContent = Browser.Document.CreateElement("div"); topCellContent.Style.Width = "100%"; topCellContent.Style.Height = "100%"; topCell.AppendChild(topCellContent); if (Spacing != 0 && (middleRow != null || bottomRow != null)) { topCellContent.Style.PaddingBottom = Spacing + "px"; } } return topCellContent; }