Ferreteria/v0.5/@cls/tExecutableTree: Difference between revisions
< Ferreteria | v0.5 | @cls
Jump to navigation
Jump to search
No edit summary |
Tag: Undo |
||
Line 10: | Line 10: | ||
This trait extends {{l/ver/class|tExecutableTwig}} by dispatching events to sub-twigs. | This trait extends {{l/ver/class|tExecutableTwig}} by dispatching events to sub-twigs. | ||
==Methods== | ==Methods== | ||
=== | ===events=== | ||
* {{l/sub|OnEvent()}} | |||
* {{l/ver/meth|layout/event|OnEvent}} calls the following, though the exact order has changed: | * {{l/ver/meth|layout/event|OnEvent}} calls the following, though the exact order has changed: | ||
** if {{l/ver/meth|layout/event|ShouldDoTwigs}}, then {{l/ver/meth|layout/event|DoEventTwigs}} | ** if {{l/ver/meth|layout/event|ShouldDoTwigs}}, then {{l/ver/meth|layout/event|DoEventTwigs}} | ||
** {{l/ver/meth|layout/event|OnEventLocal}} | ** {{l/ver/meth|layout/event|OnEventLocal}} | ||
* {{l/ | * {{l/sub|DoEventTwigs()}} is implemented as you might expect. | ||
* {{l/ | * {{l/sub|OnEventLocal()}} is inherited from {{l/ver/class|tExecutableTwig}} | ||
=== | ====rendering==== | ||
* {{l/sub|RenderValue()}} | |||
* {{l/sub|RenderBranch()}} | |||
* {{l/sub|RenderTwigs()}} | |||
* {{l/sub| | |||
* {{l/sub| | |||
* {{l/sub| |
Revision as of 15:37, 2 December 2022
tExecutableTwig → | tExecutableTree | → cElement |
- file: layout/elem/trait.php
About
This trait extends tExecutableTwig by dispatching events to sub-twigs.
Methods
events
- OnEvent()
- OnEvent() calls the following, though the exact order has changed:
- if ShouldDoTwigs(), then DoEventTwigs()
- OnEventLocal()
- DoEventTwigs() is implemented as you might expect.
- OnEventLocal() is inherited from tExecutableTwig