按钮帮助类 更多...
Public 成员函数 | |
| ButtonAjaxHelper (Button source) | |
| 构造函数 | |
| void | ValidateForms (params string[] forms) |
| 设置点击前要验证的表单,空值取消表单验证 | |
| void | ValidateTarget (Target target) |
| 设置表单验证提示的目标页面 | |
| void | ValidateMessageBox (bool enabled) |
| 设置是否使用消息框显示验证提示 | |
| void | ValidateMessageBoxPlain (bool plain) |
| 设置验证消息框是否使用简单样式 | |
| void | ConfirmText (string text) |
| 设置确认消息,空值取消确认 | |
| void | ConfirmTextRawHtml (RawHtml text) |
| 设置可信 HTML 确认消息,内容必须由业务代码确认可信 | |
| void | ConfirmTitle (string title) |
| 设置确认对话框标题 | |
| void | ConfirmIcon (MessageBoxIcon icon) |
| 设置确认对话框图标 | |
| void | ConfirmTarget (Target target) |
| 设置确认对话框目标页面 | |
| void | DisableControlBeforePostBack (bool disable) |
| 设置回发期间是否禁用来源控件 | |
| void | IconFont (IconFont iconFont) |
| 设置图标 | |
| void | IconFont (IconFont iconFont, string iconFontClass) |
| 设置图标 | |
| void | IconUrl (string iconUrl) |
| 设置图标 | |
| void | Icon (Icon icon) |
| 设置图标 | |
| void | ClientClick (string clientClickScript) |
| 设置客户端点击事件(等价于运行时改写按钮的 OnClientClick 属性) | |
| void | Text (string text) |
| 设置显示文本 | |
| void | Pressed (bool pressed) |
| 设置按下状态 | |
| void | ToolTip (string toolTip) |
| 设置提示信息 | |
| void | Badge (bool badge, string badgeText) |
| 设置徽标 | |
| void | Badge (bool badge, string badgeText, BadgeType badgeType) |
| 设置徽标 | |
| void | Badge (bool badge, string badgeText, BadgeType badgeType, BadgeAnimationType badgeAnimationType) |
| 设置徽标 | |
| void | Focus () |
| 使控件获得焦点 | |
| string | GetFocusReference () |
| 获取使控件获得焦点的脚本 | |
| void | ClickHandler (string clickHandler) |
| 运行时换掉客户端 click 事件的处理函数名(等价于回发中改写控件的 ClickHandler 属性) | |
| Public 成员函数 继承自 FineUI.Core.ButtonBaseAjaxHelper< T, TAjaxHelper > | |
| ButtonBaseAjaxHelper (Button source) | |
| 构造函数 | |
| Public 成员函数 继承自 FineUI.Core.BoxComponentAjaxHelper< T, TAjaxHelper > | |
| BoxComponentAjaxHelper (BoxComponent source) | |
| 构造函数 | |
| Public 成员函数 继承自 FineUI.Core.ComponentAjaxHelper< T, TAjaxHelper > | |
| ComponentAjaxHelper (Component source) | |
| 构造函数 | |
| void | EnableAjaxLoading (bool value) |
| 设置回发时是否显示加载提示 | |
| void | AjaxLoadingType (AjaxLoadingType value) |
| 设置回发加载提示的类型 | |
| void | AjaxLoadingText (string value) |
| 设置回发加载提示文字 | |
| void | AjaxLoadingMaskText (string value) |
| 设置回发遮罩提示文字 | |
| void | ShowAjaxLoadingMaskText (bool value) |
| 设置回发遮罩是否显示提示文字 | |
| void | ApplyStyles (string styles) |
| 设置控件样式 | |
| void | CssStyle (string styles) |
| 设置控件样式 | |
| void | AddCssClass (string cssClass) |
| 添加控件样式类 | |
| void | RemoveCssClass (string cssClass) |
| 删除控件样式类 | |
| Public 成员函数 继承自 FineUI.Core.ControlBaseAjaxHelper< T, TAjaxHelper > | |
| ControlBaseAjaxHelper (ControlBase source) | |
| 构造函数 | |
| virtual void | Enabled (bool enabled) |
| 设置控件的启用状态 | |
| virtual void | Disabled (bool disabled) |
| 设置控件的禁用状态 | |
| virtual void | Hidden (bool hidden) |
| 设置控件的隐藏状态 | |
| virtual void | Attribute (string key, string value) |
| 设置HTML标签属性 | |
属性 | |
| new Button | Source [get] |
| 当前控件 | |
| 属性 继承自 FineUI.Core.ButtonBaseAjaxHelper< T, TAjaxHelper > | |
| new Button | Source [get] |
| 当前控件 | |
| 属性 继承自 FineUI.Core.BoxComponentAjaxHelper< T, TAjaxHelper > | |
| new BoxComponent | Source [get] |
| 当前控件 | |
| 属性 继承自 FineUI.Core.ComponentAjaxHelper< T, TAjaxHelper > | |
| new Component | Source [get] |
| 当前控件 | |
| 属性 继承自 FineUI.Core.ControlBaseAjaxHelper< T, TAjaxHelper > | |
| ControlBase | Source [get] |
| 当前控件 | |
按钮帮助类
| FineUI.Core.ButtonAjaxHelper.ButtonAjaxHelper | ( | Button | source | ) |
构造函数
| source |
| void FineUI.Core.ButtonAjaxHelper.Badge | ( | bool | badge, |
| string | badgeText ) |
设置徽标
| badge | |
| badgeText |
| void FineUI.Core.ButtonAjaxHelper.Badge | ( | bool | badge, |
| string | badgeText, | ||
| BadgeType | badgeType ) |
设置徽标
| badge | |
| badgeText | |
| badgeType |
| void FineUI.Core.ButtonAjaxHelper.Badge | ( | bool | badge, |
| string | badgeText, | ||
| BadgeType | badgeType, | ||
| BadgeAnimationType | badgeAnimationType ) |
设置徽标
| badge | |
| badgeText | |
| badgeType | |
| badgeAnimationType |
| void FineUI.Core.ButtonAjaxHelper.ClickHandler | ( | string | clickHandler | ) |
运行时换掉客户端 click 事件的处理函数名(等价于回发中改写控件的 ClickHandler 属性)
传给客户端的只是函数名,不是脚本串,所以不需要 eval;回调首参恒为 event。传空串即摘除已绑定的处理函数。
| clickHandler |
| void FineUI.Core.ButtonAjaxHelper.ClientClick | ( | string | clientClickScript | ) |
设置客户端点击事件(等价于运行时改写按钮的 OnClientClick 属性)
脚本作为独立函数下发,排在 click 事件之前执行;要中断后续动作(click 事件、确认框、回发), 脚本里必须写 return false。传空串即摘除已绑定的脚本。
| clientClickScript |
| void FineUI.Core.ButtonAjaxHelper.ConfirmIcon | ( | MessageBoxIcon | icon | ) |
设置确认对话框图标
| icon | 确认对话框图标 |
| void FineUI.Core.ButtonAjaxHelper.ConfirmTarget | ( | Target | target | ) |
设置确认对话框目标页面
| target | 确认对话框目标页面 |
| void FineUI.Core.ButtonAjaxHelper.ConfirmText | ( | string | text | ) |
设置确认消息,空值取消确认
| text | 确认消息 |
| void FineUI.Core.ButtonAjaxHelper.ConfirmTextRawHtml | ( | RawHtml | text | ) |
设置可信 HTML 确认消息,内容必须由业务代码确认可信
| text | 确认消息 |
| void FineUI.Core.ButtonAjaxHelper.ConfirmTitle | ( | string | title | ) |
设置确认对话框标题
| title | 确认对话框标题 |
| void FineUI.Core.ButtonAjaxHelper.DisableControlBeforePostBack | ( | bool | disable | ) |
设置回发期间是否禁用来源控件
| disable | 是否禁用来源控件 |
| void FineUI.Core.ButtonAjaxHelper.Focus | ( | ) |
使控件获得焦点
| string FineUI.Core.ButtonAjaxHelper.GetFocusReference | ( | ) |
获取使控件获得焦点的脚本
| void FineUI.Core.ButtonAjaxHelper.Icon | ( | Icon | icon | ) |
设置图标
| icon |
| void FineUI.Core.ButtonAjaxHelper.IconFont | ( | IconFont | iconFont | ) |
设置图标
| iconFont |
| void FineUI.Core.ButtonAjaxHelper.IconFont | ( | IconFont | iconFont, |
| string | iconFontClass ) |
设置图标
| iconFont | |
| iconFontClass |
| void FineUI.Core.ButtonAjaxHelper.IconUrl | ( | string | iconUrl | ) |
设置图标
| iconUrl |
| void FineUI.Core.ButtonAjaxHelper.Pressed | ( | bool | pressed | ) |
设置按下状态
| pressed |
| void FineUI.Core.ButtonAjaxHelper.Text | ( | string | text | ) |
设置显示文本
| text |
| void FineUI.Core.ButtonAjaxHelper.ToolTip | ( | string | toolTip | ) |
设置提示信息
| toolTip |
| void FineUI.Core.ButtonAjaxHelper.ValidateForms | ( | params string[] | forms | ) |
设置点击前要验证的表单,空值取消表单验证
| forms | 表单控件标识 |
| void FineUI.Core.ButtonAjaxHelper.ValidateMessageBox | ( | bool | enabled | ) |
设置是否使用消息框显示验证提示
| enabled | 是否使用消息框显示验证提示 |
| void FineUI.Core.ButtonAjaxHelper.ValidateMessageBoxPlain | ( | bool | plain | ) |
设置验证消息框是否使用简单样式
| plain | 验证消息框是否使用简单样式 |
| void FineUI.Core.ButtonAjaxHelper.ValidateTarget | ( | Target | target | ) |
设置表单验证提示的目标页面
| target | 表单验证提示的目标页面 |
|
get |