Associates a client script resource with an extender class. This allows the extender to find it's associated script and what names and prefixes with which to reference it.
Definition
Namespace:Telerik.Web
Assembly:Telerik.Web.UI.dll
Syntax:
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
[SuppressMessage("Microsoft.Design", "CA1019:DefineAccessorsForAttributeArguments", Justification = "The composition of baseType, resourceName, and fullResourceName is available as ResourcePath")]
public sealed class ClientScriptResourceAttribute : Attribute, _Attribute
Inheritance: objectAttributeClientScriptResourceAttribute
Implements:
Inherited Members
Constructors
public ClientScriptResourceAttribute()
Associates a client script resource with the class.
Associates a client script resource with the class.
public ClientScriptResourceAttribute(string componentType, Type baseType, string resourceName)
The name given to the class in the Web.TypeDescriptor.addType call
baseTypeTypeA Type that lives in the same folder as the script file
resourceNamestringThe name of the script file itself (e.g. 'foo.cs')
Called from other constructors to set the prefix and the name.
public ClientScriptResourceAttribute(string componentType)
The name given to the class in the Web.TypeDescriptor.addType call
Properties
The component type name to use when referencing the component class in XML. If the XML reference is "<myns:Foo/>", the component type is "Foo".
public string ComponentType { get; set; }
This is the path to the resource in the assembly. This is usually defined as [default namespace].[Folder name].FileName. In a project called "ControlLibrary1", a JScript file called Foo.js in the "Script" subdirectory would be named "ControlLibrary1.Script.Foo.js" by default.
public string ResourcePath { get; set; }