Members
Rsd
accept
image/jpeg, image/x-png, image/gif
- Source:
accept
image/jpeg, image/x-png, image/gif
- Source:
afterClose
event:功能等于this.on('afterclose',function(){}),支持IOC
- Source:
afterShow
event:功能等于this.on('aftershow',function(){}),支持IOC
- Source:
allFields
https://json-schema.org/understanding-json-schema/
- Source:
alwaysWrap
始终换行,在一列 显示所有组件
- Source:
appId
Ajax请求客户端标识,作用域:每个客户端, 添加到header中
- Source:
authCode
授权码
- Source:
authorization
用户身份授权
- Source:
autoCompleteHandler
callback:function([{key:'1',text:'abc',data:{}},{key:'2',text:'def',data:{}},....])
- Source:
autoExpanded
自动展开,加载完成后自动展开子节点
- Source:
autoLoad
页面展示后自动加载数据
- Source:
autoScrollIntoView
将控件滚动到父容器可见区域
- Source:
backgroundImage
控件的背景图片,false 或者 none 表示不设置背景图片
- Source:
backgroundImage
控件的背景图片,false 或者 none 表示不设置背景图片
- Source:
beforeClose
event:功能等于this.on('beforeclose',function(){}),支持IOC
- Source:
beforeShow
event:功能等于this.on('beforeshow',function(){}),支持IOC
- Source:
bgColors
- Source:
border
- Source:
border
- Source:
checkSessionServiceName
Session 验证接口
- Source:
closeBtn
是否显示关闭按钮
- Source:
codeMember
仅在定义时使用,在创建Rsd.data.EnumItem对象时,从数据源items中 ,获取指定属性作为Rsd.data.EnumItem对象的code属性值
- Source:
colorMember
仅在定义时使用,在创建Rsd.data.EnumItem对象时,从数据源items中 ,获取指定属性作为Rsd.data.EnumItem对象的color属性值
- Source:
crossDomain
是否是跨域请求
- Source:
currentIndex
当前图片序号
- Source:
data
数据源
- Source:
dataSource
数据源
- Source:
Example
[{title:'logo',text:'this is a picture',src:'http://image.website.com/imagefile',link:'http://www.website.com/target'}]
dataSource
{viewBox:'',paths:[],fill:''}
- Source:
dataSource
数据源
- Source:
Example
[{title:'logo',text:'this is a picture',src:'http://image.website.com/imagefile',link:'http://www.website.com/target'}]
dataSource
数据源
- Source:
dataSource
数据源
- Source:
dataStore
Rsd.data.Store数据源
- Source:
dataType
预期服务器返回的数据类型:text,json
- Source:
daysStyle
日期(天)的样式
- Source:
decodeURI
解码
delay
延时启动时长(毫秒),一般用于等待框架加载
- Source:
deleteService
删除对象Service接口
- Source:
doc
文档信息
- Source:
domTagName
- Source:
draggable
可拖动
- Source:
dsSchema
数据源数据结构
- Source:
dynamic
动态添加子节点,动态添加子节点
- Source:
encodeURI
提示: 使用 unescape() 方法对字符串进行解码。
fieldWidth
- Source:
fieldWidth
- Source:
file
- Source:
fileDownloadServiceName
文件下载服务名称
- Source:
fileUploadServiceName
上传
- Source:
findService
查找单个对象Service接口
- Source:
fixed
{top|right|bottom|left:50} dom.style.position = fixed
- Source:
floating
{top|right|bottom|left:50} dom.style.position = absolute ;
- Source:
formatString
value 值格式化字符串
- Source:
from
value is :server or local
- Source:
globalVariables
环境变量
- Source:
gridColumns
- Source:
hidden
控制display属性,隐藏后dom所在位置不会被占用
- Source:
images
图片集合
- Source:
images
加载后的图片对象
- Source:
indexEditServiceName
文档索引编辑函数
- Source:
indexLoadServiceName
文档索引加载函数
- Source:
insertService
新增对象Service接口
- Source:
inset
dom.style.inset
'10 10 10 10' or {top:10px,right:10px,bottom:10px,left:10px}
- Source:
isReady
页面已准备好,可以执行load方法
- Source:
isView
是阅读模式
- Source:
itemCls
dom li class
- Source:
itemKeyMember
键值字段名
- Source:
itemLabelWidth
label文字宽度
- Source:
itemSelectedCls
被选中时样式
- Source:
itemXtype
默认值:image
- Source:
itemXtype
元素 默认类型
- Source:
items
- Source:
jsonFormatter
返回数据json格式:web:首字母小写
- Source:
layout
- Source:
listService
获取列表数据Service接口
- Source:
listeners
- Source:
maxLength
图片最多数量
- Source:
maxSize
文件大小自定义限制,大于该值文件不处理
- Source:
maxSize
文件大小自定义限制,大于该值文件不处理
- Source:
messageStyle
消息内容样式
- Source:
metaInfo
文件元数据
- Source:
minSize
压缩 最小值,只有大于该值,才能压缩
- Source:
model
复杂属性显示模式:full:完全数据,simple:简单
- Source:
multiple
支持多选
- Source:
name
dom Element 的 name 属性,数据源映射键值
- Source:
onChanged
change 事件
- Source:
onchange
选择的文件发生改变
- Source:
onchange
选择的文件发生改变
- Source:
ondelete
自定义删除事件
- Source:
ondelete
自定义删除事件
- Source:
onload
iframe onload 事件
- Source:
onselect
自定义选择事件
- Source:
onselect
自定义选择事件
- Source:
onview
点击查看时发生
- Source:
overflow
ctrl or body style.overflow value
null ,auto,visible,hidden
- Source:
pageSizeList
分页大小 列表
- Source:
panelStyle
选择框面版样式
- Source:
是否打印
- Source:
printBorder
是否打印边框
- Source:
proxy
也可以是用于创建Rsd.common.Service的参数config对象{}
- Source:
readOnly
- Source:
readOnly
是否是只读模式:在只读模式下不能用于上传图片。
- Source:
readOnly
是否是只读模式
- Source:
rowclick
通过rowclick实现自定义编辑
- Source:
rowdblclick
通过rowdblclick实现自定义编辑
- Source:
rows
table 的数据源
cell: {
xtype:'',//cell or list
text:'',
title:'',//仅 xtype=='list' 有效
dataIndex:'',
align:'left',
rowSpan:1,
colSpan:1,
tag:'span',
width:100,
height:50,
nobr:true,
print:true,
style:{},
}
- Source:
rows
table 的数据源
- Source:
scale
尺寸缩放比例
- Source:
searchHandler
callback:function(text)
- Source:
selectAll
全选信息
- Source:
selected
- Source:
selectedOnClick
单击时选中
- Source:
selectedOnDblClick
双击击时选中
- Source:
selectorServices
仅from == 'server',时有效
- Source:
services
- Source:
services
- Source:
showIndex
是否显示目录栏
- Source:
size
打印区域大小
- Source:
src
图地址,与value的区别是:src不做任何转换,直接将值设在img元素的src属性上, value 值可通过formatString进行格式化后设置到img元素的src属性上
- Source:
tabIndex
- Source:
templates
模板文件库 ,程序启动时,将模板加载到本地并编译后 存在 indexDB中
{
name:'',path
}
- Source:
textMember
仅在定义时使用,在创建Rsd.data.EnumItem对象时,从数据源items中 ,获取指定属性作为Rsd.data.EnumItem对象的text属性值
- Source:
timeout
超时时间 毫秒
- Source:
timing
性能统计参数
- Source:
title
选择器窗体标题
- Source:
toHtml
将字符串转化为dom节点
token
Ajax请求身份标识,作用域:每次请求, 添加到header中
*
- Source:
types
支持的文件类型
- Source:
updateService
修改对象Service接口
- Source:
valueMember
仅在定义时使用,在创建Rsd.data.EnumItem对象时,从数据源items中 ,获取指定属性作为Rsd.data.EnumItem对象的value属性值
- Source:
viewHandler
在表格中用户查看外键对象详细接口
viewHandler:function(value)
- Source:
zoomView
允许看大图
- Source:
zoomView
允许看大图
- Source:
Methods
gbkToUTF8()
mmToPx(width, height, scale) → {object}
将一个块区域的长宽的值(mm)转换为以px为计算单位的值
Parameters:
| Name | Type | Description |
|---|---|---|
width |
number | |
height |
number | |
scale |
number | 缩放比例 参考: window.devicePixelRatio; |
Returns:
{width:100,height:100}
- Type
- object
pxToMm(width, height, scale) → {object}
将一个块区域的长宽的值(px)转换为以mm为计算单位的值
Parameters:
| Name | Type | Description |
|---|---|---|
width |
number | |
height |
number | |
scale |
number | 缩放比例 参考: window.devicePixelRatio; |
Returns:
{width:100,height:100}
- Type
- object
unicodeToUTF8()
_btn_preview()
- Source:
_btn_save()
- Source:
_imageItemDblClick(item, evt)
双击图片表示 选择该图片
Parameters:
| Name | Type | Description |
|---|---|---|
item |
* | listItem |
evt |
* |
- Source:
add(caller, name, handler, once, group)
添加事件
Parameters:
| Name | Type | Description |
|---|---|---|
caller |
object | 指定fire时允许的调用者 |
name |
string | |
handler |
function | string | |
once |
boolean | 只执行一次,仅在 once==true ,且handler方法执行 无返回或返回true时 ,移除注册事件 |
group |
string | 分组关键字 |
- Source:
add(child)
适时 删除该方法,由addItem代替
追加
Parameters:
| Name | Type | Description |
|---|---|---|
child |
* |
- Source:
add()
添加到items中, 并显示(show)
- Source:
addCls()
- Source:
addControl()
添加控件
- Source:
addCookie(name, value, expiresHours)
添加Cookie
Parameters:
| Name | Type | Description |
|---|---|---|
name |
* | |
value |
* | |
expiresHours |
* | 单位:小时 |
addItem(child)
追加
Parameters:
| Name | Type | Description |
|---|---|---|
child |
* |
- Source:
addItem()
添加子菜单
- Source:
addNode(id,, pid,, text,, title,, icon,, tag)
动态添加节点
Parameters:
| Name | Type | Description |
|---|---|---|
id, |
||
pid, |
||
text, |
||
title, |
||
icon, |
||
tag |
- Source:
addObject(objectStoreName, data)
添加数据
Parameters:
| Name | Type | Description |
|---|---|---|
objectStoreName |
* | |
data |
* |
- Source:
addService()
- Source:
addTotalRow(subtotal, total)
添加统计行
Parameters:
| Name | Type | Description |
|---|---|---|
subtotal |
Count:600 | 列合计数据 |
total |
总计 |
- Source:
addTreeNode(treeNode)
动态添加节点
Parameters:
| Name | Type | Description |
|---|---|---|
treeNode |
object | TreeNode |
- Source:
albumsItemDblClick(item)
Parameters:
| Name | Type | Description |
|---|---|---|
item |
* |
- Source:
Returns:
albumsItemViewDetail()
- Source:
Returns:
animate(speed, delay, callback)
设置transition属性,实现动画效果的基本方法
Parameters:
| Name | Type | Description |
|---|---|---|
|
||
speed |
||
delay |
||
|
||
callback |
- Source:
app_afterLayout()
- Source:
apply()
将参数config合并到obj中
arrayConcat()
数组拼接
arr1,arr2.... arr n
beforeClose()
- Source:
bindEvent(selector, eventName, fn)
为Dom绑定事件
Parameters:
| Name | Type | Description |
|---|---|---|
selector |
* | |
eventName |
* | |
fn |
* |
blankspan()
创建空格dom对象
block(callback, ms, 同一个对象下有多个阻塞方法时,需要为每个阻塞方法指定键值)
阻赛执行,阻赛期间的事件被放弃
Parameters:
| Name | Type | Description |
|---|---|---|
callback |
被阻塞执行的方法 | |
ms |
延时时长 (单位毫秒) | |
同一个对象下有多个阻塞方法时,需要为每个阻塞方法指定键值 |
- Source:
btn_add()
添加控件
- Source:
btn_add_albums()
- Source:
btn_close()
- Source:
btn_new_image()
- Source:
btn_preview()
- Source:
btn_publish()
- Source:
btn_refesh_ds()
- Source:
btn_refresh()
- Source:
btn_reset()
- Source:
btn_save()
- Source:
btn_save_and_publish()
- Source:
btn_share()
- Source:
btn_show_selector()
- Source:
build()
在父节点展开时构建子节点
- Source:
buildColumns()
对外提供重新绘制表头和表底的入口
- Source:
buildRows(rows, indexStart)
设置表行数据表,并显示 翻页显示
Parameters:
| Name | Type | Description |
|---|---|---|
rows |
number | 数据源 |
indexStart |
number | 起始序号 |
- Source:
buildTree()
构建文档结构树
- Source:
button(text, fn, caller, args, style)
创建button 对象,function (text,fn,caller,args)
Parameters:
| Name | Type | Description |
|---|---|---|
text |
string | object | 文字信息 |
fn |
string | function | 点击事件函数 |
caller |
object | 调用对象 |
args |
array | fn参数 |
style |
object | 样式对象{text:'',backroud} |
callFunction(caller,, fn,, args)
调用方法执行
Parameters:
| Name | Type | Description |
|---|---|---|
caller, |
Rsd.common.Object | |
fn, |
function | string | |
args |
array | [] |
changeCls()
- Source:
checkRecord()
验证控件输入值 是否有效
- Source:
checkRecord()
验证控件输入值 是否有效
- Source:
checkToken()
checkValue()
- Source:
checkbox(checked, readonly)
Parameters:
| Name | Type | Description |
|---|---|---|
checked |
* | |
readonly |
* |
Returns:
circle()
创建圆dom对象 function circle(size, color)
clear()
- Source:
clear()
- Source:
clearHotKey()
清楚注册的热键
- Source:
clearLocal()
清除所有本地缓存
clearSelected()
清除所有选择
- Source:
clearSelected()
- Source:
clearSession()
清除所有会话缓存
clone()
对象克隆
close()
关闭窗口 设置this.closeCancel=true 可以阻止窗口关闭
- Source:
closeDB()
关闭数据库
- Source:
closeDropdownBox()
关闭 DropdownBox
- Source:
closeLoading()
关闭加载框
- Source:
closeWaiting()
关闭等待窗口
collapseAll()
Close all nodes
- Source:
compile(tplStr, caseno)
模板编译 并缓存 方法 ,返回编译后的方法
Parameters:
| Name | Type | Description |
|---|---|---|
tplStr |
* | 模板字符串 |
caseno |
* | 引擎方案:1 or 2 |
Returns:
compress(dataURL, compress, callback)
使用canvas绘制图片并压缩
Parameters:
| Name | Type | Description |
|---|---|---|
dataURL |
* | |
compress |
* | 压缩比 0~1 |
callback |
* |
- Source:
constructor()
- Source:
constructor(config)
Parameters:
| Name | Type | Description |
|---|---|---|
config |
* |
- Source:
constructor(config)
Parameters:
| Name | Type | Description |
|---|---|---|
config |
* |
- Source:
constructor(config)
Parameters:
| Name | Type | Description |
|---|---|---|
config |
* |
- Source:
constructor()
- Source:
constructor()
- Source:
constructor(config)
Parameters:
| Name | Type | Description |
|---|---|---|
config |
* |
- Source:
constructor()
- Source:
constructor()
- Source:
constructor()
- Source:
constructor(config)
Parameters:
| Name | Type | Description |
|---|---|---|
config |
* |
- Source:
constructor(config)
Parameters:
| Name | Type | Description |
|---|---|---|
config |
* |
- Source:
constructor()
- Source:
constructor()
- Source:
constructor(config)
Parameters:
| Name | Type | Description |
|---|---|---|
config |
* |
- Source:
constructor()
- Source:
constructor(config)
Parameters:
| Name | Type | Description |
|---|---|---|
config |
* |
- Source:
constructor()
- Source:
constructor()
- Source:
constructor()
- Source:
constructor(config)
Parameters:
| Name | Type | Description |
|---|---|---|
config |
* |
- Source:
constructor()
- Source:
constructor()
- Source:
constructor(config)
Parameters:
| Name | Type | Description |
|---|---|---|
config |
* |
- Source:
constructor(config)
Parameters:
| Name | Type | Description |
|---|---|---|
config |
* |
- Source:
constructor()
- Source:
constructor(config)
Parameters:
| Name | Type | Description |
|---|---|---|
config |
* |
- Source:
constructor()
- Source:
constructor(config)
Parameters:
| Name | Type | Description |
|---|---|---|
config |
* |
- Source:
constructor(config)
Parameters:
| Name | Type | Description |
|---|---|---|
config |
* |
- Source:
contain()
- Source:
containCls()
- Source:
copy()
复制数据到剪贴板
createInnerControl()
- Source:
debug()
会向 日志服务器发送日志
- Source:
defineEnums(url)
Parameters:
| Name | Type | Description |
|---|---|---|
url |
* | 枚举数据获取地址 url:'http://hermes.redmicro.cn/dev/getenumlist' |
defineRem()
窗体自适应
delay()
- Source:
deleteCookie()
deleteDB()
删除数据库
- Source:
deleteObject(objectStoreName, keyValue)
删除数据
Parameters:
| Name | Type | Description |
|---|---|---|
objectStoreName |
* | |
keyValue |
* |
- Source:
deleteObject()
删除对象
- Source:
deleteRow()
删除一条row行
- Source:
detectNavigator()
检测浏览器及其版本
detectOS()
检查操作系统
doLayout()
用于布局控件,对于先隐藏,布局后再显示对控件,需要重新调用该方法。
- Source:
doLayout()
执行控件布局,需主动调用。
- Source:
download(key)
Parameters:
| Name | Type | Description |
|---|---|---|
key |
* |
- Source:
download(key)
Parameters:
| Name | Type | Description |
|---|---|---|
key |
* |
- Source:
drawCaption()
- Source:
drawImage(imgUrl, compress, canvas, x, y)
将图片imgUrl,按压缩比compress 绘制到 canvas 上
Parameters:
| Name | Type | Description |
|---|---|---|
imgUrl |
* | |
compress |
* | |
canvas |
* | 画布 |
x |
* | 位置X |
y |
* | 位置Y |
- Source:
drawList()
- Source:
dstype_change(sender, e)
Parameters:
| Name | Type | Description |
|---|---|---|
sender |
* | |
e |
* |
- Source:
edit(rowIndexArray, edit)
设置编辑状态
Parameters:
| Name | Type | Description |
|---|---|---|
rowIndexArray |
arrat | |
edit |
bool |
- Source:
editRow(rowIndex, edit:true, colIndex, ctrl)
Parameters:
| Name | Type | Description |
|---|---|---|
rowIndex |
行号 从标题栏 开始计起 | |
edit:true |
编辑装,flase 只读状态 | |
colIndex |
列号 不设置时,编辑整行,设置时编辑指定行的指定列。 | |
ctrl |
xtype | control | 编辑状态的控件类型,不指定为默认类型 |
- Source:
empty()
清空dom对象
emptyImage()
空白透明PNG 图片base64编码
enumLabel(enumName, value, style)
将枚举值,转化为对应的文字标签输出
Parameters:
| Name | Type | Description |
|---|---|---|
enumName |
* | |
value |
* | |
style |
* | 样式对象{color:'red'} |
Returns:
enumText(enumName, value, style)
将枚举值,转化为对应的文字输出
Parameters:
| Name | Type | Description |
|---|---|---|
enumName |
* | |
value |
* | |
style |
* | 样式对象{color:'red'} |
Returns:
error(msg, url, ex)
调试模式下,提示错误信息,非调试模式打印到控制台;如日志接口(Rsd.Logger)存在发送日志到服务端
Parameters:
| Name | Type | Description |
|---|---|---|
msg |
string | |
url |
string | |
ex |
object |
error()
会向 日志服务器发送日志
- Source:
exchange()
行列互换
- Source:
exeHotKeyFun()
触发热键事件执行
- Source:
expandAll()
Open all nodes
- Source:
export(sheet, file)
导出当前表格数据到Excel
Parameters:
| Name | Type | Description |
|---|---|---|
sheet |
* | |
file |
* | 仅文件名称(不是路径) |
- Source:
findNode()
- Source:
findObject()
获取单个对象
- Source:
fire()
触发事件
- Source:
fire(caller, name, args, group)
触发事件
Parameters:
| Name | Type | Description |
|---|---|---|
caller |
object | 调用者,必须和add时caller一致,否则不会触发事件 |
name |
function | string | |
args |
Array | |
group |
string | 分组关键字 |
- Source:
fireResize(evt)
触发 document Resize事件
Parameters:
| Name | Type | Description |
|---|---|---|
evt |
* |
Returns:
firstPage()
- Source:
formatApi()
- Source:
formatCurrency(num, currency)
货币格式化,不做四舍五入处理
Parameters:
| Name | Type | Description |
|---|---|---|
num |
number | 金额 |
currency |
string | 货币符号 £(英镑) ¥(人民币,日元) €(欧元) $(美元) |
Returns:
string
formatCurrencyCN()
金额小写转大写
formatJson(json, replaceropt, spaceopt)
格式化json
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
json |
string | object | ||
replacer |
function | String | Number |
<optional> |
|
space |
Number | String |
<optional> |
formatLabels(row)
Parameters:
| Name | Type | Description |
|---|---|---|
row |
* |
- Source:
Returns:
formatNumber(value, precision)
数字格式化
Parameters:
| Name | Type | Description |
|---|---|---|
value |
Number | String | |
precision |
Number |
formatTimestamp(timestamp, formatopt)
时间转化
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
timestamp |
Number | String | ||
format |
string |
<optional> |
格式:yyyy-MM-dd|yyyy-MM-dd hh:mm:ss|yyyy-MM-dd hh:mm:ss S |
fullScreen()
Returns:
funApplyByIOC()
方法动态注入调用,由自身开始逐级向高一级父对象探测,返回最近父对象中被探测到的方法执行结果
对parent的依赖,降低到最后
- Source:
funBindByIOC(obj:要注入的对象,, propertyName:要注入的属性名)
方法动态注入调用,由自身开始逐级向高一级父对象探测,将最终function 绑定到对象属性上,提供程序执行效率
Parameters:
| Name | Type | Description |
|---|---|---|
obj:要注入的对象, |
||
propertyName:要注入的属性名 |
- Source:
get()
get(key)
根据id 或 name 获取Item
Parameters:
| Name | Type | Description |
|---|---|---|
key |
* |
- Source:
Returns:
get()
- Source:
get()
- Source:
getApp()
获取App
getAppAuthorization()
getAppConfig()
获取APP配置项,即app属性值
getAppId()
获取App Id
getAppToken()
获取App token
getByteLength()
getCheckedNodes()
- Source:
getColumns()
对已存在但列进行合并,对不存在列不会添加到原始数组中,可通过列的visible属性控制列的显示状态
- Source:
getControl(id)
获取控件
Parameters:
| Name | Type | Description |
|---|---|---|
id |
* |
- Source:
getControlConfig()
获取文档设计组件配置项
- Source:
getCookie()
getDPI()
获取屏幕设备像素值(1英寸正方形区域(长*宽)像素)
getData()
获取表格最新数据
- Source:
getData()
获取数据
- Source:
getDocConfig(forSave)
获取整个文档配置
Parameters:
| Name | Type | Description |
|---|---|---|
forSave |
* |
- Source:
getDocument()
- Source:
getDom()
getElAttribute(el:dom对象)
Parameters:
| Name | Type | Description |
|---|---|---|
el:dom对象 |
stirng | Element |
- Source:
getFieldValue()
获取字段值
- Source:
getFieldValue()
获取字段值
- Source:
getFields()
对已存在但字段进行合并,对不存在字段不会添加到原始数组中
- Source:
getFile(dataURL)
将dataUrl转化为 文件对象
Parameters:
| Name | Type | Description |
|---|---|---|
dataURL |
* |
- Source:
getFile()
单文件上传 ,所以只有一个文件返回
- Source:
getFileName()
getFormData()
获取表单数据
- Source:
getFunctionName()
Otherwise returns the provided default.
getGlobalVariable(key)
获取环境变量,不区分大小写
Parameters:
| Name | Type | Description |
|---|---|---|
key |
* |
- Source:
getHeight()
配置项 值为空时,取dom值
- Source:
getItem()
获取EnumItem
- Source:
getItem()
获取子菜单
- Source:
getItemById()
根据ID获取
- Source:
getItemByName()
根据Name获取
- Source:
getItemByXtype()
- Source:
getJsonSchema(json)
获取对象的jsonSchema
https://json-schema.org/understanding-json-schema/
Parameters:
| Name | Type | Description |
|---|---|---|
json |
* |
getJsonSchema(modelType, callback)
表单 jsonSchema
Parameters:
| Name | Type | Description |
|---|---|---|
modelType |
* | |
callback |
* |
- Source:
getKeyValue()
获取键值
- Source:
getObjectByIndex(objectStoreName, key)
通过索引获取数据
Parameters:
| Name | Type | Description |
|---|---|---|
objectStoreName |
* | |
key |
* |
- Source:
getObjectByKey(objectStoreName, keyValue)
通过键值获取数据
Parameters:
| Name | Type | Description |
|---|---|---|
objectStoreName |
* | |
keyValue |
* |
- Source:
getPaging()
- Source:
getPlugin()
应用内插件
- Source:
getRecord()
在获取前,应先验证form的数据是否全部有效,
- Source:
getRecord()
在获取前,应先验证form的数据是否全部有效,
- Source:
getRedjsHost()
获取redjs框架服务器地址,支持将框架部署在远程服务器上
getRedjsUrl()
获取完整的redjs框架地址
isAgentHost:true 表示jsHomePath指向的服务期是否代理服务器,代理服务器的求情格式为jsHomePath/base64(path),需要在代理服务上 先解析path内容
isAgentHost:false 表示正常结构
getRowData(rowIndex)
获取编辑后的 row 值
Parameters:
| Name | Type | Description |
|---|---|---|
rowIndex |
number |
- Source:
getSchema()
表单 model
- Source:
getSchemaList()
表单 模型
- Source:
getScrollHeight()
- Source:
getScrollHeight()
- Source:
getSelectedNodes()
- Source:
getService()
获取当前服务环境中的服务
- Source:
getStringWidth(val:文本,, size:单个英文字符文本宽度(像素))
获取字符宽度,像素值
Parameters:
| Name | Type | Description |
|---|---|---|
val:文本, |
||
size:单个英文字符文本宽度(像素) |
Returns:
文本宽度
getText()
- Source:
getText()
- Source:
getTouched()
获取触屏到滑动信息:{direction:'none',speed:1000,angle:0}
- Source:
getType()
getUrlParam()
获取url参数
getUserAgent()
getUserAgent
getValue()
- Source:
getValue()
- Source:
getValue()
- Source:
getValue()
- Source:
Returns:
getValue()
- Source:
getValue()
- Source:
getValue()
重写getValue
无效时间值,返回null.
- Source:
getValueItem()
获取valueItem的属性值
- Source:
getView()
获取当前的table的dom视图(tr,td 集合)
- Source:
getWhere(ignoreNone)
Parameters:
| Name | Type | Description |
|---|---|---|
ignoreNone |
忽略op=='none'的条件 |
- Source:
getWidth()
配置项 值为空时,取dom值
- Source:
getXhr()
- Source:
Returns:
getZIndex()
zIndex + offset
Returns:
number
goTo()
- Source:
handleEvent(evt)
Parameters:
| Name | Type | Description |
|---|---|---|
evt |
* |
- Source:
handleUploadEvent(evt)
Parameters:
| Name | Type | Description |
|---|---|---|
evt |
* |
- Source:
hasProperty()
是否包含属性 name ,含其原型的属性。
hide()
隐藏dom
- Source:
httpGet()
httpPost()
httpRequest(config, callback)
Parameters:
| Name | Type | Description |
|---|---|---|
config |
将被合并到Ajax对象上 | |
callback |
回调函数 |
iframe_load(evt)
Parameters:
| Name | Type | Description |
|---|---|---|
evt |
* |
- Source:
Returns:
iframe_load(evt)
Parameters:
| Name | Type | Description |
|---|---|---|
evt |
* |
- Source:
Returns:
imageDblClick(item, evt)
双击图片表示 选择该图片
Parameters:
| Name | Type | Description |
|---|---|---|
item |
* | |
evt |
* |
- Source:
info(msg, data)
会向 日志服务器发送日志
Parameters:
| Name | Type | Description |
|---|---|---|
msg |
* | |
data |
* |
- Source:
init()
- Source:
initComponent()
initComponent 处理dom对象的创建,dom结构,样式,事件注册
- Source:
initComponentEx()
- Source:
initComponentEx()
- Source:
initComponentEx()
- Source:
initComponentEx()
- Source:
initComponentEx()
- Source:
initComponentEx()
- Source:
initComponentEx()
初始化 仅创建对象,并未渲染dom结构
- Source:
initDropdownBox(style, boxCls, tipCls)
初始化DropdownBox控件,将要显示的控件,添加到DropdownBox中,并设置DropdownBox的style。
Parameters:
| Name | Type | Description |
|---|---|---|
style |
object | DropdownBox的初始样式 |
boxCls |
string | DropdownBox的样式名称 |
tipCls |
string | DropdownBox的tip控件样式名称 |
- Source:
initImage(config)
Parameters:
| Name | Type | Description |
|---|---|---|
config |
* |
- Source:
insertItem(index, child)
插入子控件
Parameters:
| Name | Type | Description |
|---|---|---|
index |
* | 位置 |
child |
* | 子控件 |
- Source:
Returns:
insertObject()
新增对象
- Source:
isArray()
判断对象是否是数组
Returns:
boolean
isBoolean()
isChrome()
判断是否是Chrome浏览器
isCreated()
isDate()
是否是数字
isDestroyed()
- Source:
isDisabled()
- Source:
isEmpty()
isFunction()
isHidden()
- Source:
isLoading()
redjs 框架正在加载
isMobile()
判断是否是移动端
isNaN()
isNull()
isNullOrUndefined()
isNumber()
是否是数字
isObject()
是否是原生态对象,Rsd.getType(obj) == this.getType({})
isReady()
DOMContentLoaded 事件 即:HTML 文档被加载和解析完成后
isRendered()
- Source:
isString()
isTrue()
isType(obj, type)
obj instanceof type
Parameters:
| Name | Type | Description |
|---|---|---|
obj |
object | 对象 |
type |
class | 类型名称 |
Returns:
boolean
isUndefined()
isWeChat()
判断是否是微信浏览器
isWeChatApp()
判断是否是微信小程序 (this.app.appType == 'wxapp')
label(style, tip)
生成标签
Parameters:
| Name | Type | Description |
|---|---|---|
style |
object | 文本颜色或样式对象{color:'red'} |
tip |
string | tip |
lang()
lastPage()
- Source:
layout()
设置位置相关属性:width、height、margin...以及自定义style,display=none 不参与布局
- Source:
layoutAuto()
流式布局:多行多列
容器:高度和宽度固定,
子控件:高度不固定,宽度不固定
- Source:
layoutBorder()
边框布局:以上下左右为起点布局控件
容器:高度和宽度固定
子控件:高度固定,宽度固定
region:top,bottom,left,right,center
- Source:
layoutContent()
布局 header(label),body(ctrl)
- Source:
layoutHbox()
流式布局:单行多列
容器:高度和宽度固定,
子控件:高度固定,宽度不固定
display:flex ,flex-direction:row; 一行多列布局
- Source:
layoutItems()
布局子控件 ,layoutBorder,layoutVbox,layoutHbox,layoutFit,layoutAuto
- Source:
layoutVbox()
流式布局:单列多行
容器:高度和宽度固定,
子控件:高度不固,宽度固定
display:flex ,flex-direction:column; 一列多行布局
- Source:
link(text, fn, caller, args, style, tip)
样式简单 无背景的 标签
Parameters:
| Name | Type | Description |
|---|---|---|
text |
* | |
fn |
* | |
caller |
* | |
args |
* | |
style |
* | |
tip |
* |
listObject(objectStoreName)
遍历数据
Parameters:
| Name | Type | Description |
|---|---|---|
objectStoreName |
* |
- Source:
listObjects()
获取对象列表
- Source:
load(callback)
加载页面数据
Parameters:
| Name | Type | Description |
|---|---|---|
callback |
* | 回调函数 |
- Source:
Returns:
load(args, callback)
用于动态【逐条】加载缓存数据
Parameters:
| Name | Type | Description |
|---|---|---|
args |
* | |
callback |
* |
- Source:
load(args:, callback:回调函数,等待数据请求返回后,cache)
Parameters:
| Name | Type | Default | Description |
|---|---|---|---|
args: |
object | 作为Ajax对象请求时的参数中data属性(即远程方法的参数) | |
callback:回调函数,等待数据请求返回后,cache |
function | true | 时 ,异步执行 |
- Source:
load()
- Source:
load()
- Source:
load(schema)
Parameters:
| Name | Type | Description |
|---|---|---|
schema |
* |
- Source:
load(key)
Parameters:
| Name | Type | Description |
|---|---|---|
key |
* |
- Source:
load()
- Source:
loadClass()
loadCssFile()
loadCtrlProperty(event)
展示控件属性值
Parameters:
| Name | Type | Description |
|---|---|---|
|
||
event |
* |
- Source:
loadData(data)
加载 page 数据
Parameters:
| Name | Type | Description |
|---|---|---|
data |
* |
- Source:
loadData()
根据 itemXtype 的不同,加载不同数据源
[
{
title:'logo',
text:'this is a picture',
src:'http://image.website.com/imagefile',
link:'http://www.website.com/target'
}
]
- Source:
loadData(data, callback)
control控件加载数据 无回调
Parameters:
| Name | Type | Description |
|---|---|---|
data |
Array | 数据源 |
callback |
Array | 回调函数 |
- Source:
loadData()
3、dataSource 是Rsd.data.Service,将查询返回的对象作为congfig.data的值 传给item 控件
- Source:
loadData()
动态批量加载节点,清楚原有节点
Parameters:
| Type | Description |
|---|---|
- Source:
loadData()
- Source:
loadData()
- Source:
loadData()
- Source:
loadData()
- Source:
loadData()
加载菜单数据,加载前会清除所有子菜单
- Source:
loadData()
可通过 重写该方法,定制多选框
- Source:
loadData()
可通过 重写该方法,定制多选框
- Source:
loadDocPages(row, callback)
Parameters:
| Name | Type | Description |
|---|---|---|
row |
* | |
callback |
* |
- Source:
loadFields()
{
a: {
$id: a,
title: ,
description: ,
required: true,
type: string,
minLength: 0,
maxLength: 0,
pattern: ,
format: ,
$ref: ,
dependencies: null,
minProperties: 0,
maxProperties: 0,
additionalProperties: false,
enum: null,
default: null,
examples: [123],
allOf: [],
anyOf: [],
oneOf: [],
not: []
}
}
- Source:
loadImage()
预加载图片对象
loadIndex()
- Source:
loadPlugin()
用