forked from extnet/Ext.NET
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathToolbarBase.cs
More file actions
164 lines (154 loc) · 4.97 KB
/
ToolbarBase.cs
File metadata and controls
164 lines (154 loc) · 4.97 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
/********
* @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.ComponentModel;
using System.Web.UI;
using Ext.Net.Utilities;
namespace Ext.Net
{
/// <summary>
///
/// </summary>
[Meta]
[Description("")]
public abstract partial class ToolbarBase : AbstractContainer, INoneContentable
{
/// <summary>
/// The default type of content Container represented by this object as registered in Ext.ComponentMgr (defaults to 'panel').
/// </summary>
[ConfigOption]
[Category("5. Container")]
[DefaultValue("button")]
[NotifyParentProperty(true)]
[Description("The default type of content Container represented by this object as registered in Ext.ComponentMgr (defaults to 'panel').")]
public override string DefaultType
{
get
{
return this.State.Get<string>("DefaultType", "button");
}
set
{
this.State.Set("DefaultType", value);
}
}
/// <summary>
///
/// </summary>
/// <param name="e"></param>
[Description("")]
protected override void OnPreRender(EventArgs e)
{
if (this.Flat && (!Ext.Net.X.IsAjaxRequest || this.IsDynamic))
{
this.UI = "flat";
}
base.OnPreRender(e);
}
/// <summary>
/// True to use flat style.
/// </summary>
[Meta]
[ConfigOption]
[Category("6. Toolbar")]
[DefaultValue(false)]
[NotifyParentProperty(true)]
[Description("True to use flat style.")]
public virtual bool Flat
{
get
{
return this.State.Get<bool>("Flat", false);
}
set
{
this.State.Set("Flat", value);
}
}
/// <summary>
/// True to use classic (none-flat) style.
/// </summary>
[Meta]
[ConfigOption]
[Category("6. Toolbar")]
[DefaultValue(false)]
[NotifyParentProperty(true)]
[Description("True to use classic (none-flat) style.")]
public virtual bool ClassicButtonStyle
{
get
{
return this.State.Get<bool>("ClassicButtonStyle", false);
}
set
{
this.State.Set("ClassicButtonStyle", value);
}
}
/// <summary>
/// Configure true to make the toolbar provide a button which activates a dropdown Menu to show items which overflow the Toolbar's width.
/// </summary>
[Meta]
[ConfigOption]
[Category("6. Toolbar")]
[DefaultValue(false)]
[NotifyParentProperty(true)]
[Description("Configure true to make the toolbar provide a button which activates a dropdown Menu to show items which overflow the Toolbar's width.")]
public virtual bool EnableOverflow
{
get
{
return this.State.Get<bool>("EnableOverflow", false);
}
set
{
this.State.Set("EnableOverflow", value);
}
}
/// <summary>
/// Configure the icon class of the overflow button. Defaults to: "x-toolbar-more-icon"
/// </summary>
[Meta]
[ConfigOption]
[Category("6. Toolbar")]
[DefaultValue("")]
[NotifyParentProperty(true)]
[Description("Configure the icon class of the overflow button. Defaults to: \"x-toolbar-more-icon\"")]
public virtual string MenuTriggerCls
{
get
{
return this.State.Get<string>("MenuTriggerCls", "");
}
set
{
this.State.Set("MenuTriggerCls", value);
}
}
/// <summary>
/// Set to true to make the toolbar vertical. The layout will become a vbox. Defaults to: false
/// </summary>
[Meta]
[ConfigOption]
[Category("6. Toolbar")]
[DefaultValue(false)]
[NotifyParentProperty(true)]
[Description("Set to true to make the toolbar vertical. The layout will become a vbox. Defaults to: false")]
public virtual bool Vertical
{
get
{
return this.State.Get<bool>("Vertical", false);
}
set
{
this.State.Set("Vertical", value);
}
}
}
}