按钮帮助类 更多...
Public 成员函数 | |
| ButtonAjaxHelper (Button source) | |
| 构造函数 | |
| void | Type (ButtonType type) |
| 设置按钮点击行为:普通按钮、重置表单或提交表单,不改变控件类型。 | |
| void | ValidateForms (params string[] forms) |
| 设置点击前要验证的表单,空值取消表单验证 | |
| void | ValidateTarget (Target target) |
| 设置表单验证提示的目标页面 | |
| void | ValidateMessageBox (bool enabled) |
| 设置是否使用消息框显示验证提示 | |
| void | ValidateMessageBoxPlain (bool plain) |
| 设置验证消息框是否使用简单样式 | |
| void | ConfirmText (string text, bool? confirmTextRaw=null) |
| 更新确认文字;省略显示标记时保留浏览器当前的 HTML 显示方式。 | |
| void | ConfirmTextRaw (bool confirmTextRaw) |
| 仅修改下次确认框的 HTML 显示标记,保留已有确认文字、标题、图标和后台事件。 | |
| 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, bool? textRaw=null) |
| 更新按钮文字;省略显示标记时保留浏览器当前的 HTML 显示方式。 | |
| void | TextRaw (bool textRaw) |
| 仅修改按钮文字的 HTML 显示标记,并重新显示已有内容;不会清空或重复发送文字。 | |
| void | TextRawHtml (RawHtml text) |
| 同时设置按钮文字和 HTML 显示标记;内容来源须由业务代码验证。 | |
| void | Pressed (bool pressed) |
| 设置按下状态 | |
| void | ToolTip (string toolTip, bool? toolTipRaw=null) |
| 更新提示文字;省略显示标记时保留浏览器当前的 HTML 显示方式。 | |
| void | ToolTipRaw (bool toolTipRaw) |
| 仅修改提示文字的 HTML 显示标记,并重新显示已有内容;不会清空或重复发送文字。 | |
| void | ToolTipRawHtml (RawHtml toolTip) |
| 同时设置提示文字和 HTML 显示标记;内容来源须由业务代码验证。 | |
| 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 > | |
| void | AutoColumnSpan (int value) |
| 更新 AutoColumn 子项的固定跨度并重排 | |
| void | AutoColumnSpanAll (bool value) |
| 更新 AutoColumn 子项的跨全部列开关并重排 | |
| void | AutoColumnBreakAfter (bool value) |
| 更新 AutoColumn 子项的后换行开关并重排 | |
| 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, |
| bool? | confirmTextRaw = null ) |
更新确认文字;省略显示标记时保留浏览器当前的 HTML 显示方式。
| text | 新的确认文字;null 清空内容,但不隐式改变显示标记。 |
| confirmTextRaw | null 保留当前标记,true 按 HTML 显示,false 按确认框的普通文字规则显示。 |
| void FineUI.Core.ButtonAjaxHelper.ConfirmTextRaw | ( | bool | confirmTextRaw | ) |
仅修改下次确认框的 HTML 显示标记,保留已有确认文字、标题、图标和后台事件。
| confirmTextRaw | true 按 HTML 显示;false 按确认框的普通文字规则显示。 |
| void FineUI.Core.ButtonAjaxHelper.ConfirmTextRawHtml | ( | RawHtml | text | ) |
同时设置确认文字和 HTML 显示标记;内容来源须由业务代码验证。
| text | 可信 HTML;null 清空内容并撤销标记,new RawHtml(null) 则保留明确的 HTML 显示方式。 |
| 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, |
| bool? | textRaw = null ) |
更新按钮文字;省略显示标记时保留浏览器当前的 HTML 显示方式。
| text | 新的按钮文字;null 清空内容,但不隐式改变显示标记。 |
| textRaw | null 保留当前标记,true 按 HTML 显示,false 撤销标记后按控件的 EncodeText 设置显示。 |
| void FineUI.Core.ButtonAjaxHelper.TextRaw | ( | bool | textRaw | ) |
仅修改按钮文字的 HTML 显示标记,并重新显示已有内容;不会清空或重复发送文字。
| textRaw | true 按 HTML 显示;false 撤销标记后按控件的 EncodeText 设置显示。 |
| void FineUI.Core.ButtonAjaxHelper.TextRawHtml | ( | RawHtml | text | ) |
同时设置按钮文字和 HTML 显示标记;内容来源须由业务代码验证。
| text | 可信 HTML;null 清空内容并撤销标记,new RawHtml(null) 则保留明确的 HTML 显示方式。 |
| void FineUI.Core.ButtonAjaxHelper.ToolTip | ( | string | toolTip, |
| bool? | toolTipRaw = null ) |
更新提示文字;省略显示标记时保留浏览器当前的 HTML 显示方式。
| toolTip | 新的提示文字;null 清空内容,但不隐式改变显示标记。 |
| toolTipRaw | null 保留当前标记,true 按 HTML 显示,false 撤销标记后按控件的 EncodeText 设置显示。 |
| void FineUI.Core.ButtonAjaxHelper.ToolTipRaw | ( | bool | toolTipRaw | ) |
仅修改提示文字的 HTML 显示标记,并重新显示已有内容;不会清空或重复发送文字。
| toolTipRaw | true 按 HTML 显示;false 撤销标记后按控件的 EncodeText 设置显示。 |
| void FineUI.Core.ButtonAjaxHelper.ToolTipRawHtml | ( | RawHtml | toolTip | ) |
同时设置提示文字和 HTML 显示标记;内容来源须由业务代码验证。
| toolTip | 可信 HTML;null 清空内容并撤销标记,new RawHtml(null) 则保留明确的 HTML 显示方式。 |
| void FineUI.Core.ButtonAjaxHelper.Type | ( | ButtonType | type | ) |
设置按钮点击行为:普通按钮、重置表单或提交表单,不改变控件类型。
| type | 按钮行为,普通按钮为 ButtonType.Button |
| 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 |