-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathScriptSettings.cs
179 lines (151 loc) · 4.08 KB
/
ScriptSettings.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
/*
Copyright © Olav Christian Botterli.
Dual licensed under the MIT or GPL Version 2 licenses.
Date: 30.08.2011, Norway.
http://www.webgrid.com
*/
#region Header
/*
Copyright © Olav Christian Botterli.
Dual licensed under the MIT or GPL Version 2 licenses.
Date: 30.08.2011, Norway.
http://www.webgrid.com
*/
#endregion Header
using System;
using System.ComponentModel;
namespace WebGrid
{
/// <summary>
/// Disable Javascript resources being generated by WebGrid.
/// </summary>
public class ScriptSettings
{
#region Properties
/// <summary>
/// </summary>
/// <value><c>true</c> if [allow cancel]; otherwise, <c>false</c>.</value>
[Bindable(true), Category("Behavior"), DefaultValue(true), Description(
@"Sets or gets if WebGrid should use Ajax Loader. Default is true.")]
public bool DisableAjaxLoader { get; set; }
/// <summary>
/// Disable JGrowl - a Jquery Notification plugin. http://plugins.jquery.com/project/jGrowl
/// </summary>
public bool DisableClientNotification
{
get;
set;
}
/// <summary>
/// Disable ContextMenu
/// </summary>
/// <remarks>
/// </remarks>
public bool DisableContextMenu
{
get; set;
}
/// <summary>
/// Disable JQuery UI hover effect on buttons.
/// </summary>
/// <remarks>
/// </remarks>
public bool DisableHoverButtons
{
get; set;
}
///<summary>
/// Disable meioMask - a jQuery mask plugin. http://plugins.jquery.com/project/meiomask
///</summary>
public bool DisableInputMask
{
get; set;
}
/// <summary>
/// Disable JQuery (1.3.2) resource scripts
/// </summary>
/// <remarks>
/// </remarks>
public bool DisableJQuery
{
get; set;
}
/// <summary>
/// Disable JQuery UI (1.7.2)
/// </summary>
public bool DisableJQueryUI
{
get; set;
}
/// <summary>
/// Disable ColorBox resource scripts
/// </summary>
/// <remarks>
/// </remarks>
public bool DisablePopupExtender
{
get; set;
}
/// <summary>
/// Disable QTip (1.0.0rc3) resource scripts
/// </summary>
public bool DisableToolTip
{
get; set;
}
/// <summary>
/// Disable JQuery (1.3.2) resource scripts
/// </summary>
/// <remarks>
/// </remarks>
public bool DisableWebGridClientObject
{
get; set;
}
///<summary>
/// Start index for controls to be register in page header. Default is 0.
///</summary>
/// <remarks>
/// This property is useful if you want to register scripts before WebGrid.
/// </remarks>
public int HeaderStartIndex
{
get; set;
}
/// <summary>
/// Disable JQuery UI Select Menu
/// </summary>
/// <remarks>
/// </remarks>
public bool DisableSelectMenu
{
get;
set;
}
///<summary>
/// Disable bookmark
///</summary>
/// <remarks>
/// This property is useful.
/// </remarks>
public bool DisableBookmark
{
get;
set;
}
#endregion Properties
#region Methods
/// <summary>
/// Returns a <see cref="T:System.String"/> that represents the current <see cref="T:System.Object"/>.
/// </summary>
/// <returns>
/// A <see cref="T:System.String"/> that represents the current <see cref="T:System.Object"/>.
/// </returns>
/// <filterpriority>2</filterpriority>
public override string ToString()
{
return "No design support";
}
#endregion Methods
}
}