(id string, propName string, event VDomEvent)
| 215 | } |
| 216 | |
| 217 | func (r *RootElem) Event(id string, propName string, event VDomEvent) { |
| 218 | comp := r.CompMap[id] |
| 219 | if comp == nil || comp.Elem == nil { |
| 220 | return |
| 221 | } |
| 222 | fnVal := comp.Elem.Props[propName] |
| 223 | callVDomFn(fnVal, event) |
| 224 | } |
| 225 | |
| 226 | // this will be called by the frontend to say the DOM has been mounted |
| 227 | // it will eventually send any updated "refs" to the backend as well |