Table of Contents

TopicTransformationCore.RegisterStartupScript Method

Definition

Namespace
Sandcastle.Core.PresentationStyle.Transformation
Assembly
Sandcastle.Core.dll

This is used to register a block of script to execute in the $(document).ready() function by presentation styles that support script.

public void RegisterStartupScript(int priority, string scriptBlock)

Parameters

priority int

The priority of the script. Lower numbers will have higher priority

scriptBlock string

The script block to execute

Remarks

Only unique script blocks are registered. Any subsequent calls to this method with an identical script block will ignore the duplicates.