补充部分官方文档里没有的Client Library以及代码提示Schema更新(二)
2006-09-29 15:33
519 查看
这次补充了所有的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>
[b]Script components: [/b] 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>
[b]Script components: [/b] 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>
[b]Script components: [/b] 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>
[b]Script components: [/b] 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>
[b]Script components: [/b] 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>
[b]Script components: [/b] 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>
[b]Script components: [/b] 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>
[b]Script components: [/b] 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>
[b]Script components: [/b] required
Inherits: Sys.Data.DataFilter
<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>
[b]Script components: [/b] 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>
[b]Script components: [/b] 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>
[b]Script components: [/b] 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>
[b]Script components: [/b] 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>
[b]Script components: [/b] 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>
[b]Script components: [/b] 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>
[b]Script components: [/b] 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>
[b]Script components: [/b] 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>
[b]Script components: [/b] required
Inherits: Sys.Data.DataFilter
相关文章推荐
- 补充部分官方文档里没有的Client Library以及代码提示Schema更新(二)
- 补充部分官方文档里没有的Client Library以及代码提示Schema更新(二)
- 补充部分官方文档里没有的Client Library以及代码提示Schema更新(一)
- 补充部分官方文档里没有的Client Library以及代码提示Schema更新(三)
- 补充部分官方文档里没有的Client Library以及代码提示Schema更新(三)
- 补充部分官方文档里没有的Client Library以及代码提示Schema更新(三)
- 补充部分官方文档里没有的Client Library以及代码提示Schema更新(一)
- 补充部分官方文档里没有的Client Library以及代码提示Schema更新(一)
- vs2012没有C#智能代码提示+更新后报错“未找到与约束匹配的导出”
- vs2017更新后web项目部分后台代码类没有颜色,也没有自动提示输入功能
- 今天用httpclient访问jenkins遇到请求被转发到登录页面,看了网上的一些教程也没能解决。后来参考了下官方文档解决了,代码如下
- Eclipse For JavaEE SVN更新代码时提示“unable to load default svn client ”错误
- 在看官方的例子时候由一个grid实例,在每一行之前有个加号,展开可以显示内容,在实际应用中还是非常有用的,照搬例子的代码,发现老是提示对象不存在,查阅资料后发现是没有加载插件,这里和大家分享下Ext.grid.RowExpander插件的使用,
- Win7 update部分更新没有安装错误代码80246008
- 手动添加文档注释让原本没有文档注释的dll库在使用时显示代码提示
- CoolWeather项目实战(第三部分终章:手动更新天气和切换城市以及后台自动更新)--->第一行代码-Android(第2版)
- Android App更新版本以及提示用户下载最新apk(有图,有代码,有最终效果图)详细解释及思路
- 实现类似google搜索效果,文本框输入智能提示,没有用ajax控件和第三方控件,完全手写代码
- UIImageView范围内放大,缩小,移动 -- 官方文档代码