Add fonts, autotable, autotable examples

This commit is contained in:
2026-07-13 13:01:26 -04:00
parent ea3d2a6d03
commit cf8342f8d4
71 changed files with 16084 additions and 1443 deletions

View File

@@ -89,7 +89,19 @@ func renderIDs(root *vdom.VNode) (*SNode, map[int]map[string]func(vdom.Event)) {
return walk(root), handlers
}
// serverEvent is the vdom.Event a server component sees when the client replays a
// handler invocation. Only the target's value survives the round trip (it is all
// the client sends); everything else — key, pointer coordinates, the DOM target,
// the DataTransfer — is meaningless on the server and reads as its zero value.
type serverEvent struct{ value string }
func (e serverEvent) PreventDefault() {}
func (e serverEvent) Value() string { return e.value }
func (e serverEvent) PreventDefault() {}
func (e serverEvent) StopPropagation() {}
func (e serverEvent) Value() string { return e.value }
func (e serverEvent) Checked() bool { return false }
func (e serverEvent) Key() string { return "" }
func (e serverEvent) ClientX() int { return 0 }
func (e serverEvent) ClientY() int { return 0 }
func (e serverEvent) Target() any { return nil }
func (e serverEvent) SetData(_, _ string) {}
func (e serverEvent) GetData(string) string { return "" }