still working on the layout tool
- started doing it in a more adhoc way and will engineer it once I have a clear vision
This commit is contained in:
@@ -112,3 +112,8 @@ func (d *DOM) GetNodeByID(ID string) *UINode {
|
||||
func (d *DOM) AppendElem(root *UINode, elem *UINode) error {
|
||||
return root.AppendItem(elem)
|
||||
}
|
||||
|
||||
// DeleteElem deletes and element from the DOM
|
||||
func (d *DOM) DeleteElem(elem *UINode) {
|
||||
delete(d.elements, elem.ID)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user