webview_go
webview_go copied to clipboard
show or hide title bar. hide title bar,bind `StartDragging` function to Drag window.
show or hide title bar
example: go:
w.SetTitleBar(false)
hide title bar,bind StartDragging
function to Drag window.
example:
go:
_ = w.Bind("dragging", w.StartDragging)
html:
<div id="my_title_bar" style="width:100%; height:30px; background:red;"> My Dragging Title Bar</div>
js:
document.addEventListener("DOMContentLoaded", ()=>{ document.querySelector("#my_title_bar").addEventListener("mousemove", event => window.dragging()); });