Table Context: Difference between revisions
New page: {{context|Kit Reference|Context Transitions}} See Also: Table Target References The "table" context is essentially the same as a "portal" context, since the context simply correspond... |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{ | {{contextmulti|Kit Reference}} | ||
Jump to: [[#references|Target References]] | |||
The "table" context identifies the containing table of a template or portal within the current hierarchy. | |||
==Context Transitions{{anchor|transitions}}== | |||
The "table" context is essentially the same as a "portal" context, since the context simply corresponds to a table portal within a layout. From within a "table" context, you can utilize the following set of valid context transitions: | The "table" context is essentially the same as a "portal" context, since the context simply corresponds to a table portal within a layout. From within a "table" context, you can utilize the following set of valid context transitions: | ||
Line 10: | Line 14: | ||
Example: this.parent<br> | Example: this.parent<br> | ||
{{note}}The "parent" transition can only be utilized a '''single''' time, so it is not possible to go upwards two or more levels within the hierarchy. | {{note}}The "parent" transition can only be utilized a '''single''' time, so it is not possible to go upwards two or more levels within the hierarchy. | ||
|- | |||
|} | |||
==Target References{{anchor|references}}== | |||
Tables are a special type of portal. As such, they share all of the same target references as normal portals. However, tables also have a few additional target references that are unique to themselves. The complete list of these special target references is presented in the table below. | |||
{{important}}Tables also support [[Portal Target#references|all general portal target references]]. | |||
:{| class="infotable" | |||
|class="leftnormal"|gapx | |||
|(Right, Number) Returns the gap between items within the table along the X-axis.<br> | |||
Example: perform this.gapx | |||
|- | |||
|gapy | |||
|(Right, Number) Returns the gap between items within the table along the Y-axis.<br> | |||
Example: perform this.gapy | |||
|- | |- | ||
|} | |} |
Latest revision as of 08:16, 20 February 2009
Context: HL Kit … Kit Reference … Multiple Sources
Jump to: Target References
The "table" context identifies the containing table of a template or portal within the current hierarchy.
Context Transitions
The "table" context is essentially the same as a "portal" context, since the context simply corresponds to a table portal within a layout. From within a "table" context, you can utilize the following set of valid context transitions:
parent Transitions to the layout context corresponding to the visual element that contains the portal.
Example: this.parent
NOTE! The "parent" transition can only be utilized a single time, so it is not possible to go upwards two or more levels within the hierarchy.
Target References
Tables are a special type of portal. As such, they share all of the same target references as normal portals. However, tables also have a few additional target references that are unique to themselves. The complete list of these special target references is presented in the table below.
IMPORTANT! Tables also support all general portal target references.
gapx (Right, Number) Returns the gap between items within the table along the X-axis.
Example: perform this.gapx
gapy (Right, Number) Returns the gap between items within the table along the Y-axis.
Example: perform this.gapy