Example #1
0
func SetBody(content html.Node) {
	getBody().SetInnerHTML(content.String())
}
Example #2
0
//SetBody sets the content of the body, in the future this should be replaced by own dom wrapping
func (element Element) SetInnerHTML(content html.Node) {
	element.object.Set("innerHTML", content.String())
}
Example #3
0
func (element jQuerySelector) Before(content html.Node) {
	element.oneArgumentMethod("before", content.String())
}
Example #4
0
func (element jQuerySelector) Prepend(content html.Node) {
	element.oneArgumentMethod("prepend", content.String())
}
Example #5
0
func (element jQuerySelector) HTML(content html.Node) {
	element.oneArgumentMethod("html", content.String())
}