[译]Yii2.0 常用小部件的名词解释

作者: wxfeng 分类: 未分类 发布时间: 2017-06-16 00:00    阅读 991 次

ListView

The ListView widget is used to display data from a data provider.
Each data model is rendered using the specified view file.
Since it provides features such as pagination, sorting and filtering out of the box, it is handy both to display
information to end user and to create data managing UI.

译:

ListView小部件用于显示来自数据提供者的数据。每个数据模型都使用指定的视图文件进行呈现。由于它提供了分页、排序和过滤等功能,所以既可以向终端用户显示信息,也可以创建数据管理UI。

用法:http://www.yiiframework.com/doc-2.0/guide-output-data-widgets.html#listview

GridView

Data grid or GridView is one of the most powerful Yii widgets. It is extremely useful if you need to quickly build the admin
section of the system. It takes data from a data provider and renders each row using a set of columnspresenting data in the form of a table.

Each row of the table represents the data of a single data item, and a column usually represents an attribute of
the item (some columns may correspond to complex expressions of attributes or static text).

译:

数据网格或GridView是最强大的Yii小部件之一。在需要快速构建系统的管理部分时非常有用。它从数据提供程序(data provider)获取数据,并使用表格形式的列出每一行。
表的每一行表示一条记录,而列通常表示该项的属性(某些列可能对应于属性或静态文本的复杂表达式)。

用法:http://www.yiiframework.com/doc-2.0/guide-output-data-widgets.html#gridview

如果觉得我的文章对您有用,请随意赞赏。您的支持将鼓励我继续创作!

发表评论

您的电子邮箱地址不会被公开。