C# Class N2.Resources.Register

Methods to register styles and javascripts.
Afficher le fichier Open project: n2cms/n2cms

Méthodes publiques

Méthode Description
CkEditor ( this page ) : void
IsRegistered ( ICollection stateCollection, string resourceUrl ) : bool
JQuery ( ICollection stateCollection ) : string
JQuery ( this page ) : void
JQueryPlugins ( ICollection stateCollection ) : string
JQueryPlugins ( this page ) : void
JQueryUi ( ICollection stateCollection ) : string
JQueryUi ( this page ) : void
JavaScript ( ICollection stateCollection, string resourceUrl ) : string
JavaScript ( ICollection stateCollection, string script, ScriptOptions options ) : string
JavaScript ( this page, Type type, string resourceName ) : void

Register an embedded javascript resource reference in the page header.

JavaScript ( this page, Type type, string resourceName, ScriptOptions options ) : void

Register an embedded javascript resource reference in the page header with options.

JavaScript ( this page, string resourceUrl ) : void

Registers a script reference in the page's header.

JavaScript ( this page, string script, ScriptOptions options ) : void
JavaScript ( this page, string script, ScriptPosition position, ScriptOptions options ) : void

Registers a script block on a page.

RegisterResource ( ICollection stateCollection, string resourceUrl ) : bool
StyleSheet ( ICollection stateCollection, string resourceUrl ) : string
StyleSheet ( this page, Type type, string resourceName ) : void

Register an embedded style sheet reference in the page's header.

StyleSheet ( this page, string resourceUrl ) : void

Register a style sheet reference in the page's header.

StyleSheet ( this page, string resourceUrl, Media media ) : void

Register a style sheet reference in the page's header with media type.

TabPanel ( Page page, string selector ) : void
TabPanel ( Page page, string selector, bool registerTabCss ) : void

Private Methods

Méthode Description
AddScriptInclude ( Page page, string resourceUrl, Control holder, bool priority ) : Control
AddString ( Control holder, string script, bool priority ) : System.Web.UI.WebControls.Literal
EmbedDocumentReady ( string script ) : string
FrameInteraction ( this page ) : void
GetPlaceHolder ( Page page ) : System.Web.UI.WebControls.PlaceHolder
GetScriptHolder ( Page page ) : System.Script
Is ( this options, ScriptOptions expectedOption ) : bool
Register ( ) : System

Set the resource paths to the defaults. This happens BEFORE the config file is loaded, right at the app start-up.

SelectedQueryKeyRegistrationScript ( ) : string
TinyMCE ( ICollection stateCollection ) : string

Method Details

CkEditor() public static méthode

public static CkEditor ( this page ) : void
page this
Résultat void

IsRegistered() public static méthode

public static IsRegistered ( ICollection stateCollection, string resourceUrl ) : bool
stateCollection ICollection
resourceUrl string
Résultat bool

JQuery() public static méthode

public static JQuery ( ICollection stateCollection ) : string
stateCollection ICollection
Résultat string

JQuery() public static méthode

public static JQuery ( this page ) : void
page this
Résultat void

JQueryPlugins() public static méthode

public static JQueryPlugins ( ICollection stateCollection ) : string
stateCollection ICollection
Résultat string

JQueryPlugins() public static méthode

public static JQueryPlugins ( this page ) : void
page this
Résultat void

JQueryUi() public static méthode

public static JQueryUi ( ICollection stateCollection ) : string
stateCollection ICollection
Résultat string

JQueryUi() public static méthode

public static JQueryUi ( this page ) : void
page this
Résultat void

JavaScript() public static méthode

public static JavaScript ( ICollection stateCollection, string resourceUrl ) : string
stateCollection ICollection
resourceUrl string
Résultat string

JavaScript() public static méthode

public static JavaScript ( ICollection stateCollection, string script, ScriptOptions options ) : string
stateCollection ICollection
script string
options ScriptOptions
Résultat string

JavaScript() public static méthode

Register an embedded javascript resource reference in the page header.
public static JavaScript ( this page, Type type, string resourceName ) : void
page this The page in whose header to register the javascript.
type System.Type The type in whose assembly the javascript is embedded.
resourceName string The name of the embedded resource.
Résultat void

JavaScript() public static méthode

Register an embedded javascript resource reference in the page header with options.
public static JavaScript ( this page, Type type, string resourceName, ScriptOptions options ) : void
page this The page in whose header to register the javascript.
type System.Type The type in whose assembly the javascript is embedded.
resourceName string The name of the embedded resource.
options ScriptOptions Options flag.
Résultat void

JavaScript() public static méthode

Registers a script reference in the page's header.
public static JavaScript ( this page, string resourceUrl ) : void
page this The page onto which to register the javascript.
resourceUrl string The url to the javascript to register.
Résultat void

JavaScript() public static méthode

public static JavaScript ( this page, string script, ScriptOptions options ) : void
page this
script string
options ScriptOptions
Résultat void

JavaScript() public static méthode

Registers a script block on a page.
public static JavaScript ( this page, string script, ScriptPosition position, ScriptOptions options ) : void
page this The page onto which to added the script.
script string The script to add.
position ScriptPosition Where to add the script.
options ScriptOptions Script registration options.
Résultat void

RegisterResource() public static méthode

public static RegisterResource ( ICollection stateCollection, string resourceUrl ) : bool
stateCollection ICollection
resourceUrl string
Résultat bool

StyleSheet() public static méthode

public static StyleSheet ( ICollection stateCollection, string resourceUrl ) : string
stateCollection ICollection
resourceUrl string
Résultat string

StyleSheet() public static méthode

Register an embedded style sheet reference in the page's header.
public static StyleSheet ( this page, Type type, string resourceName ) : void
page this The page onto which to register the style sheet.
type System.Type The type whose assembly contains the embedded style sheet.
resourceName string The name of the embedded resource.
Résultat void

StyleSheet() public static méthode

Register a style sheet reference in the page's header.
public static StyleSheet ( this page, string resourceUrl ) : void
page this The page onto which to register the style sheet.
resourceUrl string The url to the style sheet to register.
Résultat void

StyleSheet() public static méthode

Register a style sheet reference in the page's header with media type.
public static StyleSheet ( this page, string resourceUrl, Media media ) : void
page this The page onto which to register the style sheet.
resourceUrl string The url to the style sheet to register.
media Media The media type to assign, e.g. print.
Résultat void

TabPanel() public static méthode

public static TabPanel ( Page page, string selector ) : void
page System.Web.UI.Page
selector string
Résultat void

TabPanel() public static méthode

public static TabPanel ( Page page, string selector, bool registerTabCss ) : void
page System.Web.UI.Page
selector string
registerTabCss bool
Résultat void