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

一个待执行的客户端动作。创建动作不会立即执行,可作为消息框确认后的后续动作。 例如 OkCommand = ActiveWindow.HidePostBackCommand("saved") 会在用户确认后关闭窗体并回发。 更多...

静态 Public 成员函数

static ClientCommand Redirect (string url, string target="_self")
 跳转到指定网址。target 支持 _self、_parent 和 _top,默认 _self;~/ 地址按当前应用根路径解析。
static ClientCommand Refresh (string target="_self")
 刷新当前或父级页面。target 支持 _self、_parent 和 _top,默认 _self。
static ClientCommand InvokeFunction (string name, params object[] arguments)
 调用当前页面已定义的具名函数,例如 app.afterSave;参数只能是 JSON 数据,不能传入脚本表达式。
static ClientCommand InvokeParentFunction (string name, params object[] arguments)
 调用 parent 页面已定义的具名函数;参数只能是 JSON 数据,不能传入脚本表达式。

详细描述

一个待执行的客户端动作。创建动作不会立即执行,可作为消息框确认后的后续动作。 例如 OkCommand = ActiveWindow.HidePostBackCommand("saved") 会在用户确认后关闭窗体并回发。

成员函数说明

◆ InvokeFunction()

ClientCommand FineUI.Core.ClientCommand.InvokeFunction ( string name,
params object[] arguments )
static

调用当前页面已定义的具名函数,例如 app.afterSave;参数只能是 JSON 数据,不能传入脚本表达式。

◆ InvokeParentFunction()

ClientCommand FineUI.Core.ClientCommand.InvokeParentFunction ( string name,
params object[] arguments )
static

调用 parent 页面已定义的具名函数;参数只能是 JSON 数据,不能传入脚本表达式。

◆ Redirect()

ClientCommand FineUI.Core.ClientCommand.Redirect ( string url,
string target = "_self" )
static

跳转到指定网址。target 支持 _self、_parent 和 _top,默认 _self;~/ 地址按当前应用根路径解析。

◆ Refresh()

ClientCommand FineUI.Core.ClientCommand.Refresh ( string target = "_self")
static

刷新当前或父级页面。target 支持 _self、_parent 和 _top,默认 _self。


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