• Makes the given tag the mount point. This means that when other tags are created with "mountToParent" or (using <tag_name>.mount(), tag('<tag_name>', [], true)), they will be added as children of this tag. You can call mountPoint multiple times, and the last mount point tag will be used. Then when you've finished, you can call restoreMountPoint to go back to the previously mounted tag if there is one. You can clear all mount points using clearMountPoints.

    Parameters

    Returns CTag

    Example

    mountPoint(div()); // Div 1
    div.mount(); // added as child of div
    p.mount(); // added as child of div

    mountPoint(div()); // Div 2
    div.mount(); // added as child of new div
    p.mount(); // added as child of new div

    restoreMountPoint(); // Back to div 1
    clearMountPoints(); // Clears all mount points, no mount point after this call

Generated using TypeDoc