[Run_Children] processes the contents of a custom container tag and returns the results. This tag can only be used within a custom tag for which the -Container or -Looping parameter was specified.
If -Looping was specified in the [Define_Tag] then the [Run_Children] tag can be used many times within a custom container tag to implement a looping or repeating tag. If [Run_Children] is used outside of a custom container tag or in a non-container custom tag it will return no result.
[Define_Tag: Tag Name, -Container]
[Run_Children]
[/Define_Tag]
[Define_Tag: Tag Name, -Looping]
[Run_Children]
[/Define_Tag]
Use the [Define_Tag] ... [/Define_Tag] and [Run_Children] tags. The following example creates a simple container tag [Bold] ... [/Bold] that surrounds its contents with HTML bold <b> ... </b> tags. The [Run_Children] tag returns the contents of the container tag when called. Note - Container tags must be defined within the Lasso Startup folder. They cannot be defined and then used later in the same format file.
[Define_Tag: 'Bold'][Return: '<b>' + (Run_Children) + '</b>'][/Define_Tag]
[Bold]Hello![/Bold]
<b>Hello!</b>
Tag Link | [Run_Children] | Category | Custom Tag |
---|---|---|---|
Type | Substitution | Data Source | Any |
Support | Preferred | Version | 6.0 |
Output Type | String | Security | Tag |
Implementation | Internal | Sets | Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0 |
Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.
©LassoSoft Inc 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft