补充部分官方文档里没有的Client Library以及代码提示Schema更新(二)

本文涉及的产品
可视分析地图(DataV-Atlas),3 个项目,100M 存储空间
简介:
这次补充了所有的Data Access相关控件,现在似乎Atlas.js中最常用的Tag都已经写进了Schema。这次更新的Tag有:

<itemView />
<listView />
<dataSource />
<dataView />
<dataNavigator />
<xmlDataSource />
<xsltView />
<sortBehavior />
<propertyFilter />

  请 点击这里 下载,所有的下载链接均已更新。使用方式可以见我前一篇文章《 为VS.NET 2005增加Atlas Scripts的代码提示功能 》,那里的Schema下载也以更新。

  另外,XMLDataSource也出现了DataNavigator类似的问题,在它的代码里有:
this .getDescriptor  =   function () {
    
var  td  =  Sys.Data.DataSource.callBaseMethod( this , 'getDescriptor');
        
    ...
        
    
return  td;
}

  又是“Sys.Data.DataSource.callBaseMethod”了。哎,它们Code Review没有看出来吗?还好,似乎对结果没有什么影响……


  以下是我写的Client Library,希望对大家有所帮助。


ItemView Class

A control designed for viewing a single record at a time.

Syntax

Javascript

var  c  =  Sys.UI.Data.ItemView(associatedElement);
    .
    .
c.initialize();

Declarative

< itemView
    
accessKey ="accelerator key"
    cssClass
="CSS class"
    dataContext
="source for data binding operations"
    dataIndex
="the index of the currently selected item in the data source"
    enabled
="true|false"
    id
="identifier for looking up the component by name"
    propertyChanged
="event handler"
    tabIndex
="element's tab index"
    visibilityMode
="Hidden|Collapse"
    visible
="true|false"
>
    
< behaviors >
        
<!--  behaviors  -->
    
</ behaviors >
    
< bindings >
        
<!--  bindings  -->
    
</ bindings >
    
< emptyTemplate >
        
<!--  template  -->
    
</ emptyTemplate >
    
< itemTemplate >
        
<!--  template  -->
    
</ itemTemplate >
    
< propertyChanged >
        
<!--  actions  -->
    
</ propertyChanged >
</ itemView >

Script components:  required

Inherits:  Sys.UI.Data.DataControl




ListView Class

A control complements the ItemView control, which allows you to view a range of record that are selected by the bound DataSource control.

Syntax

Javascript

var  c  =  Sys.UI.Data.ListView(associatedElement);
    .
    .
c.initialize();

Declarative

< listView
    
accessKey ="accelerator key"
    alternatingItemCssClass="CSS class for alternating rows"
    cssClass
="CSS class"
    dataContext
="source for data binding operations"
    dataIndex
="the index of the currently selected item in the data source"
    enabled
="true|false"
    id
="identifier for looking up the component by name"
    itemCssClass="CSS class for individual items"
    itemTemplateParentElementId="identifier of the parent of the template"
    propertyChanged
="event handler"
    separatorCssClass="CSS class for the separator"
    selectedItemCssClass="CSS class for the selected item"
    tabIndex
="element's tab index"
    visibilityMode
="Hidden|Collapse"
    visible
="true|false"
>
    
< behaviors >
        
<!--  behaviors  -->
    
</ behaviors >
    
< bindings >
        
<!--  bindings  -->
    
</ bindings >
    
< emptyTemplate >
        
<!--  template  -->
    
</ emptyTemplate >
    
< itemTemplate >
        
<!--  template  -->
    
</ itemTemplate >
    <layoutTemplate>
        
<!-- template -->
    
</layoutTemplate>
    <separatorTemplate>
        
<!-- template -->
    
</separatorTemplate>

    
< propertyChanged >
        
<!--  actions  -->
    
</ propertyChanged >
</ listView >

Script components:  required

Inherits:  Sys.UI.Data.DataControl




DataSource Class

A control creates the "connection" between your controls and the back-end datasets.

Syntax

Javascript

new Sys.Data.DataSource();

Declarative

<dataSource
    autoLoad="true|false"
    dataAvailable="event handler"
    dataContext
="source for data binding operations"
    id
="identifier for looking up the component by name"
    initialData="the initial data when the page loads"
    propertyChanged
="event handler"
    serviceURL="the URL of the web service that will supply the data"
    serviceType="DataService|Handler"
>
    
< bindings >
        
<!--  bindings  -->
    
</ bindings >
    <dataAvailable>
        
<!-- actions -->
    
</dataAvailable>
    <parameters prop1="value1" prop2="value2" ... />
     < propertyChanged >
        
<!--  actions  -->
    
</ propertyChanged >
</ dataSource >

Script components:  required

Inherits:  Sys.Component




DataView Class

A control gives a filtered view of a of data source.

Syntax

Javascript

new Sys.Data.DataView();

Declarative

<dataSource
    dataContext ="source for data binding operations"
    id
="identifier for looking up the component by name"
    pageIndex="the current index of page"
    pageSize="the size of page"

    propertyChanged ="event handler"
    sortColumn="the column for sorting"
    sortDirection="Ascending|Descending"
>
    
< bindings >
        
<!--  bindings  -->
    
</ bindings >
    <filters>
        
<!-- filters -->
    
</filters>
     < propertyChanged >
        
<!--  actions  -->
    
</ propertyChanged >
</ dataSource >

Script components:  required

Inherits:  Sys.Component




DataNavigator Class

A control gives page navigation for a data view.

Syntax

Javascript

var  c  =  new Sys.UI.Data.DataNavigator(associatedElement);
    .
    .
c.initialize();

Declarative

< itemView
    
accessKey ="accelerator key"
    cssClass
="CSS class"
    dataContext
="source for data binding operations"
    dataView="the data view of page navigation"
    enabled ="true|false"
    id
="identifier for looking up the component by name"
    propertyChanged
="event handler"
    tabIndex
="element's tab index"
    visibilityMode
="Hidden|Collapse"
    visible
="true|false"
>
    
< behaviors >
        
<!--  behaviors  -->
    
</ behaviors >
    
< bindings >
        
<!--  bindings  -->
    
</ bindings >
     < propertyChanged >
        
<!--  actions  -->
    
</ propertyChanged >
</ itemView >

Script components:  required

Inherits:  Sys.UI.Control




XMLDataSource Class

A datasouce for xml data.

Syntax

Javascript

new Sys.Data.XMLDataSource();

Declarative

<xmlDataSource
    autoLoad="true|false"
    documentAvailable="event handler"
    dataContext
="source for data binding operations"
    id
="identifier for looking up the component by name"
    initialDocument="the initial document when the page loads"
    propertyChanged
="event handler"
    serviceURL="the URL of the web service that will supply the data"
    xpath="the xpath for getting part of xml"
>
    
< bindings >
        
<!--  bindings  -->
    
</ bindings >
    <documentAvailable>
        
<!-- actions -->
    
</documentAvailable>
    <parameters prop1="value1" prop2="value2" ... />
     < propertyChanged >
        
<!--  actions  -->
    
</ propertyChanged >
</ xmlDataSource >

Script components:  required

Inherits:  Sys.Component




XSLTView Class

A control to show data by converting xml data with xslt.

Syntax

Javascript

var  c  =  new Sys.UI.Data.XSLTView(associatedElement);
    .
    .
c.initialize();

Declarative

< itemView
    
accessKey ="accelerator key"
    cssClass
="CSS class"
    dataContext
="source for data binding operations"
    enabled
="true|false"
    id
="identifier for looking up the component by name"
    propertyChanged
="event handler"
    tabIndex
="element's tab index"
    visibilityMode
="Hidden|Collapse"
    visible
="true|false"
>
    
< behaviors >
        
<!--  behaviors  -->
    
</ behaviors >
    
< bindings >
        
<!--  bindings  -->
    
</ bindings >
    <parameters prop1="value1" prop2="value2" ... />
    
< propertyChanged >
        
<!--  actions  -->
    
</ propertyChanged >
</ itemView >

Script components:  required

Inherits:  Sys.UI.Control




SortBehavior Class

A behavior to sort the data of a dataview.

Syntax

Javascript

new  Sys.UI.Data.SortBehavior();

Declarative

< sortBehavior
    dataContext
="source for data binding operations"

    dataView="the data view for sorting"
    id="identifier for looking up the component by name"
    propertyChanged="event handler"
    sortAscendingCssClass="CSS class when sort the data order by asc"
    sortColumn="the column to sort"
    sortDescendingCssClass="CSS class when sort the data order by desc"
>
    
< bindings >
        
<!--  bindings  -->
    
</ bindings >
    
< propertyChanged >
        
<!--  actions  -->
    
</ propertyChanged >
</ sortBehavior >

Script components:  required

Inherits:  Sys.UI.Behavior




PropertyFilter Class

Syntax

Javascript

new  Sys.Data.PropertyFilter();

Declarative

<propertyFilter
    dataContext
="source for data binding operations"

    id="identifier for looking up the component by name"
    property="the property to filter"
    propertyChanged="event handler"
    value="the value to display"
>
    
< bindings >
        
<!--  bindings  -->
    
</ bindings >
    
< propertyChanged >
        
<!--  actions  -->
    
</ propertyChanged >
</ sortBehavior >

Script components:  required

Inherits:  Sys.Data.DataFilter



本文转自 jeffz 51CTO博客,原文链接:http://blog.51cto.com/jeffz/60942,如需转载请自行联系原作者

相关实践学习
DataV Board用户界面概览
本实验带领用户熟悉DataV Board这款可视化产品的用户界面
阿里云实时数仓实战 - 项目介绍及架构设计
课程简介 1)学习搭建一个数据仓库的过程,理解数据在整个数仓架构的从采集、存储、计算、输出、展示的整个业务流程。 2)整个数仓体系完全搭建在阿里云架构上,理解并学会运用各个服务组件,了解各个组件之间如何配合联动。 3&nbsp;)前置知识要求 &nbsp; 课程大纲 第一章&nbsp;了解数据仓库概念 初步了解数据仓库是干什么的 第二章&nbsp;按照企业开发的标准去搭建一个数据仓库 数据仓库的需求是什么 架构 怎么选型怎么购买服务器 第三章&nbsp;数据生成模块 用户形成数据的一个准备 按照企业的标准,准备了十一张用户行为表 方便使用 第四章&nbsp;采集模块的搭建 购买阿里云服务器 安装 JDK 安装 Flume 第五章&nbsp;用户行为数据仓库 严格按照企业的标准开发 第六章&nbsp;搭建业务数仓理论基础和对表的分类同步 第七章&nbsp;业务数仓的搭建&nbsp; 业务行为数仓效果图&nbsp;&nbsp;
相关文章
|
8月前
|
测试技术
Cypress的skip 和only 字段如何使用?
Cypress的skip 和only 字段如何使用?
112 0
Cypress的skip 和only 字段如何使用?
|
数据可视化 Go 数据库
WEGO使用—在线GO功能注释
WEGO是华大基因公司的一个在线GO注释的网站,根据网站的介绍:WEGO(网络基因本体注释图)是一个简单但有用的工具,用于可视化,比较和绘制基因本体注释结果。随着围棋词汇越来越流行,WEGO在许多研究中被广泛采用和使用,最新一次的更新是在2018年。
644 0
|
5月前
|
数据库
Tortoise ORM 和 Aerich 使用文档参考表
【8月更文挑战第15天】
213 1
|
6月前
|
网络协议 Serverless Python
函数计算操作报错合集之安装ebsynth_utility插件时报错,该如何处理
在使用函数计算服务(如阿里云函数计算)时,用户可能会遇到多种错误场景。以下是一些常见的操作报错及其可能的原因和解决方法,包括但不限于:1. 函数部署失败、2. 函数执行超时、3. 资源不足错误、4. 权限与访问错误、5. 依赖问题、6. 网络配置错误、7. 触发器配置错误、8. 日志与监控问题。
215 1
|
5月前
|
SQL 开发框架 .NET
深入解析Entity Framework Core中的自定义SQL查询与Raw SQL技巧:从基础到高级应用的全面指南,附带示例代码与最佳实践建议
【8月更文挑战第31天】本文详细介绍了如何在 Entity Framework Core (EF Core) 中使用自定义 SQL 查询与 Raw SQL。首先,通过创建基于 EF Core 的项目并配置数据库上下文,定义领域模型。然后,使用 `FromSqlRaw` 和 `FromSqlInterpolated` 方法执行自定义 SQL 查询。此外,还展示了如何使用 Raw SQL 进行数据更新和删除操作。最后,通过结合 LINQ 和 Raw SQL 构建动态 SQL 语句,处理复杂查询场景。本文提供了具体代码示例,帮助读者理解和应用这些技术,提升数据访问层的效率和灵活性。
315 0
|
8月前
|
JSON 数据库 数据格式
gorm 教程三 gen自动代码生成工具
gorm 教程三 gen自动代码生成工具
752 0
|
Go
Go 1.18 新增三大功能之一“泛型”怎么使用?
Go 1.18 新增三大功能之一“泛型”怎么使用?
83 0
|
Go 开发者
[Go开源工具] go-optioner:轻松生成函数选项模式代码
你是否使用过 functional options 函数选项模式?在使用时,你是否遇到过多字段的结构体而需要手动编写大量的设置选项函数的代码? 本文介绍了 go-opioner 开源工具的安装和使用,它能够根据结构体的定义,自动生成函数选项模式的代码。
150 0
|
Go
Go | 函数的使用细节和注意事项
Go | 函数的使用细节和注意事项
149 0
Go | 函数的使用细节和注意事项
|
Java 程序员 编译器
Go 语法要求和注意事项 | 学习笔记
快速学习 Go 语法要求和注意事项
Go 语法要求和注意事项 | 学习笔记