FineUI.Core 16.3.0
.NET 企业级全栈 UI 框架
载入中...
搜索中...
未找到
FineUI.Core.ButtonAjaxHelper类 参考

按钮帮助类 更多...

类 FineUI.Core.ButtonAjaxHelper 继承关系图:
FineUI.Core.ButtonBaseAjaxHelper< T, TAjaxHelper > FineUI.Core.BoxComponentAjaxHelper< T, TAjaxHelper > FineUI.Core.ComponentAjaxHelper< T, TAjaxHelper > FineUI.Core.ControlBaseAjaxHelper< T, TAjaxHelper > FineUI.Core.IControlBaseAjaxHelper< out T >

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]
 当前控件

详细描述

按钮帮助类

构造及析构函数说明

◆ ButtonAjaxHelper()

FineUI.Core.ButtonAjaxHelper.ButtonAjaxHelper ( Button source)

构造函数

参数
source

成员函数说明

◆ Badge() [1/3]

void FineUI.Core.ButtonAjaxHelper.Badge ( bool badge,
string badgeText )

设置徽标

参数
badge
badgeText

◆ Badge() [2/3]

void FineUI.Core.ButtonAjaxHelper.Badge ( bool badge,
string badgeText,
BadgeType badgeType )

设置徽标

参数
badge
badgeText
badgeType

◆ Badge() [3/3]

void FineUI.Core.ButtonAjaxHelper.Badge ( bool badge,
string badgeText,
BadgeType badgeType,
BadgeAnimationType badgeAnimationType )

设置徽标

参数
badge
badgeText
badgeType
badgeAnimationType

◆ ClickHandler()

void FineUI.Core.ButtonAjaxHelper.ClickHandler ( string clickHandler)

运行时换掉客户端 click 事件的处理函数名(等价于回发中改写控件的 ClickHandler 属性)

传给客户端的只是函数名,不是脚本串,所以不需要 eval;回调首参恒为 event。传空串即摘除已绑定的处理函数。

参数
clickHandler

◆ ClientClick()

void FineUI.Core.ButtonAjaxHelper.ClientClick ( string clientClickScript)

设置客户端点击事件(等价于运行时改写按钮的 OnClientClick 属性)

脚本作为独立函数下发,排在 click 事件之前执行;要中断后续动作(click 事件、确认框、回发), 脚本里必须写 return false。传空串即摘除已绑定的脚本。

参数
clientClickScript

◆ ConfirmIcon()

void FineUI.Core.ButtonAjaxHelper.ConfirmIcon ( MessageBoxIcon icon)

设置确认对话框图标

参数
icon确认对话框图标

◆ ConfirmTarget()

void FineUI.Core.ButtonAjaxHelper.ConfirmTarget ( Target target)

设置确认对话框目标页面

参数
target确认对话框目标页面

◆ ConfirmText()

void FineUI.Core.ButtonAjaxHelper.ConfirmText ( string text,
bool? confirmTextRaw = null )

更新确认文字;省略显示标记时保留浏览器当前的 HTML 显示方式。

参数
text新的确认文字;null 清空内容,但不隐式改变显示标记。
confirmTextRawnull 保留当前标记,true 按 HTML 显示,false 按确认框的普通文字规则显示。

◆ ConfirmTextRaw()

void FineUI.Core.ButtonAjaxHelper.ConfirmTextRaw ( bool confirmTextRaw)

仅修改下次确认框的 HTML 显示标记,保留已有确认文字、标题、图标和后台事件。

参数
confirmTextRawtrue 按 HTML 显示;false 按确认框的普通文字规则显示。

◆ ConfirmTextRawHtml()

void FineUI.Core.ButtonAjaxHelper.ConfirmTextRawHtml ( RawHtml text)

同时设置确认文字和 HTML 显示标记;内容来源须由业务代码验证。

参数
text可信 HTML;null 清空内容并撤销标记,new RawHtml(null) 则保留明确的 HTML 显示方式。

◆ ConfirmTitle()

void FineUI.Core.ButtonAjaxHelper.ConfirmTitle ( string title)

设置确认对话框标题

参数
title确认对话框标题

◆ DisableControlBeforePostBack()

void FineUI.Core.ButtonAjaxHelper.DisableControlBeforePostBack ( bool disable)

设置回发期间是否禁用来源控件

参数
disable是否禁用来源控件

◆ Focus()

void FineUI.Core.ButtonAjaxHelper.Focus ( )

使控件获得焦点

◆ GetFocusReference()

string FineUI.Core.ButtonAjaxHelper.GetFocusReference ( )

获取使控件获得焦点的脚本

返回
客户端脚本

◆ Icon()

void FineUI.Core.ButtonAjaxHelper.Icon ( Icon icon)

设置图标

参数
icon

◆ IconFont() [1/2]

void FineUI.Core.ButtonAjaxHelper.IconFont ( IconFont iconFont)

设置图标

参数
iconFont

◆ IconFont() [2/2]

void FineUI.Core.ButtonAjaxHelper.IconFont ( IconFont iconFont,
string iconFontClass )

设置图标

参数
iconFont
iconFontClass

◆ IconUrl()

void FineUI.Core.ButtonAjaxHelper.IconUrl ( string iconUrl)

设置图标

参数
iconUrl

◆ Pressed()

void FineUI.Core.ButtonAjaxHelper.Pressed ( bool pressed)

设置按下状态

参数
pressed

◆ Text()

void FineUI.Core.ButtonAjaxHelper.Text ( string text,
bool? textRaw = null )

更新按钮文字;省略显示标记时保留浏览器当前的 HTML 显示方式。

参数
text新的按钮文字;null 清空内容,但不隐式改变显示标记。
textRawnull 保留当前标记,true 按 HTML 显示,false 撤销标记后按控件的 EncodeText 设置显示。

◆ TextRaw()

void FineUI.Core.ButtonAjaxHelper.TextRaw ( bool textRaw)

仅修改按钮文字的 HTML 显示标记,并重新显示已有内容;不会清空或重复发送文字。

参数
textRawtrue 按 HTML 显示;false 撤销标记后按控件的 EncodeText 设置显示。

◆ TextRawHtml()

void FineUI.Core.ButtonAjaxHelper.TextRawHtml ( RawHtml text)

同时设置按钮文字和 HTML 显示标记;内容来源须由业务代码验证。

参数
text可信 HTML;null 清空内容并撤销标记,new RawHtml(null) 则保留明确的 HTML 显示方式。

◆ ToolTip()

void FineUI.Core.ButtonAjaxHelper.ToolTip ( string toolTip,
bool? toolTipRaw = null )

更新提示文字;省略显示标记时保留浏览器当前的 HTML 显示方式。

参数
toolTip新的提示文字;null 清空内容,但不隐式改变显示标记。
toolTipRawnull 保留当前标记,true 按 HTML 显示,false 撤销标记后按控件的 EncodeText 设置显示。

◆ ToolTipRaw()

void FineUI.Core.ButtonAjaxHelper.ToolTipRaw ( bool toolTipRaw)

仅修改提示文字的 HTML 显示标记,并重新显示已有内容;不会清空或重复发送文字。

参数
toolTipRawtrue 按 HTML 显示;false 撤销标记后按控件的 EncodeText 设置显示。

◆ ToolTipRawHtml()

void FineUI.Core.ButtonAjaxHelper.ToolTipRawHtml ( RawHtml toolTip)

同时设置提示文字和 HTML 显示标记;内容来源须由业务代码验证。

参数
toolTip可信 HTML;null 清空内容并撤销标记,new RawHtml(null) 则保留明确的 HTML 显示方式。

◆ Type()

void FineUI.Core.ButtonAjaxHelper.Type ( ButtonType type)

设置按钮点击行为:普通按钮、重置表单或提交表单,不改变控件类型。

参数
type按钮行为,普通按钮为 ButtonType.Button

◆ ValidateForms()

void FineUI.Core.ButtonAjaxHelper.ValidateForms ( params string[] forms)

设置点击前要验证的表单,空值取消表单验证

参数
forms表单控件标识

◆ ValidateMessageBox()

void FineUI.Core.ButtonAjaxHelper.ValidateMessageBox ( bool enabled)

设置是否使用消息框显示验证提示

参数
enabled是否使用消息框显示验证提示

◆ ValidateMessageBoxPlain()

void FineUI.Core.ButtonAjaxHelper.ValidateMessageBoxPlain ( bool plain)

设置验证消息框是否使用简单样式

参数
plain验证消息框是否使用简单样式

◆ ValidateTarget()

void FineUI.Core.ButtonAjaxHelper.ValidateTarget ( Target target)

设置表单验证提示的目标页面

参数
target表单验证提示的目标页面

属性说明

◆ Source

new Button FineUI.Core.ButtonAjaxHelper.Source
get

该类的文档由以下文件生成:
  • ButtonAjaxHelper.cs