From 43a6b7ff924363737c85f7bc1272e77bf955ec75 Mon Sep 17 00:00:00 2001 From: francisfuzz <15894826+francisfuzz@users.noreply.github.com> Date: Fri, 28 Jun 2024 21:50:18 +0000 Subject: [PATCH] docs: detail delimiters for actions --- docs/_guide/actions.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/_guide/actions.md b/docs/_guide/actions.md index d22fd252..1d91dfbd 100644 --- a/docs/_guide/actions.md +++ b/docs/_guide/actions.md @@ -68,7 +68,9 @@ class HelloWorldElement extends HTMLElement { The actions syntax follows a pattern of `event:controller#method`. - `event` must be the name of a [_DOM Event_](https://developer.mozilla.org/en-US/docs/Web/Events), e.g. `click`. + - `:` is the required delimiter between the `event` and `controller`. - `controller` must be the name of a controller ascendant to the element. + - `#` is the required delimieter between the `controller` and `method`. - `method` (optional) must be a _public_ _method_ attached to a controller's prototype. Static methods will not work. If method is not supplied, it will default to `handleEvent`.