forked from extnet/Ext.NET
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathComponentBaseConfig.cs
More file actions
213 lines (190 loc) · 5.06 KB
/
ComponentBaseConfig.cs
File metadata and controls
213 lines (190 loc) · 5.06 KB
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
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
/********
* @version : 2.1.1 - Ext.NET Pro License
* @author : Ext.NET, Inc. http://www.ext.net/
* @date : 2012-12-10
* @copyright : Copyright (c) 2007-2012, Ext.NET, Inc. (http://www.ext.net/). All rights reserved.
* @license : See license.txt and http://www.ext.net/license/.
********/
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace Ext.Net
{
/// <summary>
///
/// </summary>
public abstract partial class ComponentBase
{
/// <summary>
///
/// </summary>
new public abstract partial class Config : AbstractComponent.Config
{
/* ConfigOptions
-----------------------------------------------------------------------------------------------*/
private bool autoScroll = false;
/// <summary>
/// true to use overflow:'auto' on the components layout element and show scroll bars automatically when necessary, false to clip any overflowing content (defaults to false).
/// </summary>
[DefaultValue(false)]
public virtual bool AutoScroll
{
get
{
return this.autoScroll;
}
set
{
this.autoScroll = value;
}
}
private bool draggable = false;
/// <summary>
/// Allows the component to be dragged via the touch event.
/// </summary>
[DefaultValue(false)]
public virtual bool Draggable
{
get
{
return this.draggable;
}
set
{
this.draggable = value;
}
}
private ComponentDragger draggableConfig = null;
/// <summary>
/// Specify as true to make a floating AbstractComponent draggable using the AbstractComponent's encapsulating element as the drag handle.
/// </summary>
[DefaultValue(null)]
public virtual ComponentDragger DraggableConfig
{
get
{
return this.draggableConfig;
}
set
{
this.draggableConfig = value;
}
}
private bool maintainFlex = false;
/// <summary>
/// Specifies that if an immediate sibling Splitter is moved, the AbstractComponent on the other side is resized, and this AbstractComponent maintains its configured flex value.
/// </summary>
[DefaultValue(false)]
public virtual bool MaintainFlex
{
get
{
return this.maintainFlex;
}
set
{
this.maintainFlex = value;
}
}
private Overflow overflowX = Overflow.Hidden;
/// <summary>
/// Possible values are: * 'auto' to enable automatic horizontal scrollbar (overflow-x: 'auto'). * 'scroll' to always enable horizontal scrollbar (overflow-x: 'scroll'). The default is overflow-x: 'hidden'. This should not be combined with autoScroll.
/// </summary>
[DefaultValue(Overflow.Hidden)]
public virtual Overflow OverflowX
{
get
{
return this.overflowX;
}
set
{
this.overflowX = value;
}
}
private Overflow overflowY = Overflow.Hidden;
/// <summary>
/// Possible values are: * 'auto' to enable automatic vertical scrollbar (overflow-y: 'auto'). * 'scroll' to always enable vertical scrollbar (overflow-y: 'scroll'). The default is overflow-y: 'hidden'. This should not be combined with autoScroll.
/// </summary>
[DefaultValue(Overflow.Hidden)]
public virtual Overflow OverflowY
{
get
{
return this.overflowY;
}
set
{
this.overflowY = value;
}
}
private bool resizable = false;
/// <summary>
/// Specify as true to apply a Resizer to this AbstractComponent after rendering.
/// </summary>
[DefaultValue(false)]
public virtual bool Resizable
{
get
{
return this.resizable;
}
set
{
this.resizable = value;
}
}
private Resizer resizableConfig = null;
/// <summary>
/// Specify as a config object to apply a Resizer to this AbstractComponent after rendering.
/// </summary>
[DefaultValue(null)]
public virtual Resizer ResizableConfig
{
get
{
return this.resizableConfig;
}
set
{
this.resizableConfig = value;
}
}
private ResizeHandle resizeHandles = ResizeHandle.All;
/// <summary>
/// A valid Ext.resizer.Resizer handles config string (defaults to 'all'). Only applies when resizable = true.
/// </summary>
[DefaultValue(ResizeHandle.All)]
public virtual ResizeHandle ResizeHandles
{
get
{
return this.resizeHandles;
}
set
{
this.resizeHandles = value;
}
}
private bool toFrontOnShow = true;
/// <summary>
/// True to automatically call toFront when the show method is called on an already visible, floating component (default is true).
/// </summary>
[DefaultValue(true)]
public virtual bool ToFrontOnShow
{
get
{
return this.toFrontOnShow;
}
set
{
this.toFrontOnShow = value;
}
}
}
}
}