WeavyLoaderOptions Class

Namespace:
Weavy.Web.Models
Assembly:
Weavy.Web.dll

Configuration options for the Weavy loader script.

public class WeavyLoaderOptions
Inheritance:
System.Object → WeavyLoaderOptions

Constructors

WeavyLoaderOptions() Initializes a new instance of the WeavyLoaderOptions class.
WeavyLoaderOptions(String) Initializes a new instance of the WeavyLoaderOptions class from the specified options string.

Properties

Global Gets or sets a value for the name of the widget outside the loading scope.
Minified Gets or sets a value indicating whether the script should be minified or not.
Slim Gets or sets a value indicating whether the script should exclude required libs jquery.

Methods

ScriptUrl(Boolean) Returns the script url.
ToString() Returns the loader script.
WidgetLoader(Boolean) Returns the loader script.
WidgetScript(Boolean) Returns the script url.

Extension Methods

IsNullOrDefault(T) Gets a value indicating if the specified value has the default value of the generic type.
Serialize(Object) Serializes an object, or graph of connected objects, to a byte array.
SerializeToJson(Object, Nullable, JsonSerializerSettings) Serializes an object, or graph of connected objects, to a json string.
IsValid(Object) Determines whether the specified object is valid by evaluating each ValidationAttribute instance that is attached to the object type.