Ferreteria/v0.5/@cls/tExecutableTree: Difference between revisions

From Woozle Writes Code
< Ferreteria‎ | v0.5‎ | @cls
Jump to navigation Jump to search
No edit summary
No edit summary
(3 intermediate revisions by the same user not shown)
Line 8: Line 8:
* '''file''': {{l/ferreteria/code|layout/elem/trait.php}}
* '''file''': {{l/ferreteria/code|layout/elem/trait.php}}
==About==
==About==
This trait is typically used together with {{l/ver/class|tExecutableTree}} but does not descend from it.
This trait extends {{l/ver/class|tExecutableTwig}} by dispatching events to sub-twigs.
==Methods==
==Methods==
===events===
===events===
* {{l/ver/meth|layout/event|OnEvent}} calls the following, though the exact order has changed:
* {{l/sub|OnEvent()}} calls these:
** if {{l/ver/meth|layout/event|ShouldDoTwigs}}, then {{l/ver/meth|layout/event|DoEventTwigs}}
** {{l/sub|DoEventTwigs()}} is implemented as you might expect.
** {{l/ver/meth|layout/event|OnEventLocal}}
** {{l/sub|OnEventLocal()}} is inherited from {{l/ver/class|tExecutableTwig}}
* {{l/ver/meth|layout/event|DoEventTwigs}} is implemented as you might expect.
* {{l/ver/meth|layout/event|OnEventLocal}} comes from {{l/ver/class|tExecutableTwig}}
====rendering====
====rendering====
No rendering-specific methods are specified here, so there aren't any defined at this point.
* {{l/sub|RenderValue()}}
* {{l/sub|RenderBranch()}}
* {{l/sub|RenderTwigs()}}

Revision as of 15:41, 2 December 2022

Ferreteria trait ferret\layout\tExecutableTree
tExecutableTwig tExecutableTree cElement

About

This trait extends tExecutableTwig by dispatching events to sub-twigs.

Methods

events

rendering