文档帮助

术语、图标和标签

许多类都有快捷名称,在用配置对象创建(实例化)类时使用。快捷名称被称为 alias(别名)(或者如果类扩展自 Ext.Component,则称为 xtype)。别名/xtype 列在适用类的类名旁边,以便快速参考。

访问级别

框架类或其成员可以指定为 private(私有的)或 protected(受保护的)。否则,类/成员是 public(公共的)。Publicprotectedprivate 是访问描述符,用于传达类或类成员应该如何以及何时使用。

成员类型

成员语法

下面是一个类成员示例,我们可以对其进行剖析,以展示类成员的语法(在本例中是从 Ext.button.Button 类查看的 lookupComponent 方法)。

lookupComponent ( item ) : Ext.Component
受保护的

当原始配置对象添加到此容器时调用,无论是在初始化 items 配置期间,还是在 添加新项目时,或 {@link #insert 插入} 时。

此方法将传递的对象转换为实例化的子组件。

当需要对子项创建应用特殊处理时,可以在子类中重写此方法。

参数

item :  Object

要添加的配置对象。

返回值
Ext.Component

要添加的组件。

让我们看一下成员行的每个部分

成员标志

API 文档使用许多标志来进一步传达类成员的功能和意图。标签可以用文本标签、缩写或图标表示。

类图标

- 表示框架类

- 单例框架类。*有关更多信息,请参阅单例标志

- 组件类型框架类(Ext JS 框架中任何扩展自 Ext.Component 的类)

- 表示类、成员或指南在当前查看的版本中是新的

成员图标

- 表示类型为 config 的类成员

- 表示类型为 property 的类成员

- 表示类型为 method 的类成员

- 表示类型为 event 的类成员

- 表示类型为 theme variable 的类成员

- 表示类型为 theme mixin 的类成员

- 表示类、成员或指南在当前查看的版本中是新的

类成员快速导航菜单

在 API 文档页面上,类名正下方是一行按钮,对应于当前类拥有的成员类型。每个按钮都显示按类型划分的成员计数(此计数会随着应用过滤器而更新)。单击按钮将导航到该成员部分。将鼠标悬停在成员类型按钮上将显示一个弹出菜单,其中包含该类型的所有成员,以便快速导航。

Getter 和 Setter 方法

与类配置选项相关的 Getter 和 Setter 方法将显示在方法部分以及 API 文档和成员类型菜单的配置部分中,紧挨着它们所作用的配置下方。Getter 和 Setter 方法文档将在配置行中找到,以便于参考。

历史记录栏

您的页面历史记录保存在本地存储中,并在顶部标题栏正下方显示(使用可用的实际空间)。默认情况下,显示的唯一搜索结果是与您当前查看的产品/版本匹配的页面。您可以通过单击历史记录栏右侧的 按钮并选择“全部”单选按钮来展开显示的内容。这将显示历史记录栏中所有产品/版本的所有最近页面。

在历史记录配置菜单中,您还将看到最近访问页面的列表。结果按“当前产品/版本”和“全部”单选按钮过滤。单击 按钮将清除历史记录栏以及本地存储中保存的历史记录。

如果在历史记录配置菜单中选择“全部”,则将启用“在历史记录栏中显示产品详细信息”复选框选项。选中后,每个历史页面的产品/版本将在历史记录栏中的页面名称旁边显示。将光标悬停在历史记录栏中的页面名称上也会将产品/版本显示为工具提示。

搜索和过滤器

可以使用页面顶部的搜索字段搜索 API 文档和指南。

在 API 文档页面上,还有一个过滤器输入字段,该字段使用过滤器字符串过滤成员行。除了按字符串过滤外,您还可以按访问级别、继承和只读过滤类成员。这是使用页面顶部的复选框完成的。

API 类导航树底部的复选框过滤类列表,以包含或排除私有类。

单击空的搜索字段将显示您最近 10 次搜索,以便快速导航。

API 文档类元数据

每个 API 文档页面(JavaScript 原始类型页面除外)都有一个菜单视图,显示与该类相关的元数据。此元数据视图将具有以下一项或多项

展开和折叠示例及类成员

可运行示例 (Fiddles) 默认在页面上展开。您可以使用代码块左上角的箭头单独折叠和展开示例代码块。您还可以使用页面右上角的切换按钮来切换所有示例的折叠状态。切换所有状态将在页面加载之间记住。

类成员默认在页面上折叠。您可以使用成员行左侧的箭头图标或全局使用右上角的展开/折叠所有切换按钮来展开和折叠成员。

桌面 -vs- 移动视图

在较窄的屏幕或浏览器上查看文档将导致针对较小外形尺寸优化的视图。桌面和“移动”视图之间的主要区别在于

查看类源代码

可以通过单击 API 文档页面顶部的类名来查看类源代码。可以通过单击成员行右侧的“view source(查看源代码)”链接来查看类成员的源代码。

Ext JS 7.8.0 - Modern Toolkit


顶部
指南适用于: modern

Ext JS 6.7.0 和 Ext JS 7.0.0 (modern) 之间的差异

添加的类

  • Ext.BreadcrumbBar
  • Ext.data.proxy.Sql
  • Ext.data.summary.None
  • Ext.dataview.GroupStore (私有)
  • Ext.dataview.ListCollapser
  • Ext.dataview.ListGroup
  • Ext.dataview.ListItemPlaceholder (私有)
  • Ext.dd.Manager (私有)
  • Ext.dd.ScrollManager (私有)
  • Ext.device.Accelerometer
  • Ext.device.accelerometer.Abstract (私有)
  • Ext.device.accelerometer.Cordova (私有)
  • Ext.device.accelerometer.Simulator (私有)
  • Ext.device.Analytics
  • Ext.device.analytics.Abstract (私有)
  • Ext.device.analytics.Cordova (私有)
  • Ext.device.Browser
  • Ext.device.browser.Abstract (私有)
  • Ext.device.browser.Cordova (私有)
  • Ext.device.browser.Simulator (私有)
  • Ext.device.browser.Window (私有)
  • Ext.device.Camera
  • Ext.device.camera.Abstract (私有)
  • Ext.device.camera.Cordova (私有)
  • Ext.device.camera.Simulator (私有)
  • Ext.device.Capture
  • Ext.device.capture.Abstract (私有)
  • Ext.device.capture.Cordova (私有)
  • Ext.device.Communicator (私有)
  • Ext.device.communicator.Android (私有)
  • Ext.device.communicator.Default (私有)
  • Ext.device.Compass
  • Ext.device.compass.Abstract (私有)
  • Ext.device.compass.Cordova (私有)
  • Ext.device.compass.Simulator (私有)
  • Ext.device.Connection
  • Ext.device.connection.Abstract (私有)
  • Ext.device.connection.Cordova (私有)
  • Ext.device.connection.Simulator (私有)
  • Ext.device.Contacts
  • Ext.device.contacts.Abstract (私有)
  • Ext.device.contacts.Cordova (私有)
  • Ext.device.Device
  • Ext.device.device.Abstract (私有)
  • Ext.device.device.Cordova (私有)
  • Ext.device.device.Simulator (私有)
  • Ext.device.FileSystem
  • Ext.device.filesystem.Abstract (私有)
  • Ext.device.filesystem.Chrome (私有)
  • Ext.device.filesystem.Cordova
  • Ext.device.filesystem.DirectoryEntry
  • Ext.device.filesystem.Entry
  • Ext.device.filesystem.FileEntry
  • Ext.device.filesystem.FileSystem
  • Ext.device.filesystem.HTML5 (私有)
  • Ext.device.filesystem.Simulator (私有)
  • Ext.device.Geolocation
  • Ext.device.geolocation.Abstract (私有)
  • Ext.device.geolocation.Cordova (私有)
  • Ext.device.geolocation.Simulator (私有)
  • Ext.device.Globalization
  • Ext.device.globalization.Abstract (私有)
  • Ext.device.globalization.Cordova (私有)
  • Ext.device.globalization.Simulator (私有)
  • Ext.device.Media
  • Ext.device.media.Abstract (私有)
  • Ext.device.media.Cordova (私有)
  • Ext.device.Notification
  • Ext.device.notification.Abstract (私有)
  • Ext.device.notification.Cordova (私有)
  • Ext.device.notification.Simulator (私有)
  • Ext.device.Orientation
  • Ext.device.orientation.Abstract (私有)
  • Ext.device.orientation.HTML5 (私有)
  • Ext.device.Push
  • Ext.device.push.Abstract (私有)
  • Ext.device.push.Cordova (私有)
  • Ext.device.Splashscreen
  • Ext.device.splashscreen.Abstract (私有)
  • Ext.device.splashscreen.Cordova (私有)
  • Ext.device.splashscreen.Simulator (私有)
  • Ext.device.Storage
  • Ext.device.storage.Abstract (私有)
  • Ext.device.storage.Cordova (私有)
  • Ext.device.storage.HTML5.Database (私有)
  • Ext.device.storage.HTML5.HTML5 (私有)
  • Ext.device.storage.HTML5.SQLStatement (私有)
  • Ext.device.storage.Simulator (私有)
  • Ext.device.Twitter
  • Ext.device.twitter.Abstract (私有)
  • Ext.device.twitter.Cordova (私有)
  • Ext.field.CheckboxGroup
  • Ext.field.Dirty (私有)
  • Ext.field.FieldGroupContainer
  • Ext.field.RadioGroup
  • Ext.froala.EditorField
  • Ext.froala.Mixin
  • Ext.grid.column.Drag
  • Ext.grid.GridDragZone (私有)
  • Ext.grid.GridDropZone (私有)
  • Ext.grid.HeaderDragZone (私有)
  • Ext.grid.HeaderDropZone (私有)
  • Ext.grid.locked.Grid
  • Ext.grid.locked.Region
  • Ext.grid.plugin.HeaderReorder (私有)
  • Ext.grid.plugin.RowDragDrop
  • Ext.grid.plugin.RowEditor
  • Ext.grid.plugin.TreeDragDrop
  • Ext.grid.rowedit.Bar (私有)
  • Ext.grid.rowedit.Cell (私有)
  • Ext.grid.rowedit.Editor
  • Ext.grid.rowedit.Gap (私有)
  • Ext.grid.rowedit.Plugin
  • Ext.grid.TreeDragZone (私有)
  • Ext.grid.TreeDropZone (私有)
  • Ext.mixin.FieldDefaults (私有)
  • Ext.panel.Accordion
  • Ext.panel.Buttons (私有)
  • Ext.plugin.dd.DragZone (私有)
  • Ext.plugin.dd.DropZone (私有)

删除的类

  • Ext.grid.LockedGrid
  • Ext.grid.LockedGridRegion
  • Ext.grid.plugin.CellEditing

修改的类

Ext.app.Application

  • 继承自 Object,Ext.app.Controller (之前是 Ext.app.Controller,Object)

Ext.calendar.panel.Days

  • 添加的配置
    • highlightToday

Ext.calendar.panel.Panel

  • 添加的配置
    • highlightToday

Ext.calendar.panel.Weeks

  • 添加的配置
    • highlightToday

Ext.Component

  • 删除的配置
    • margin

Ext.Container

  • 添加的配置
    • bodyCls

Ext.dataview.ItemHeader

  • 修改的配置
    • group
      • 类型是 Ext.dataview.ListGroup (之前是 Ext.util.Group)

Ext.dataview.List

  • 添加的配置
    • collapseDefaults
    • collapsible
    • grouping (私有)
    • groupPlaceholder (私有)

Ext.dataview.listswiper.Item

  • 别名
    widget.listswiperitem
    之前是
    widget.listswiperitem,widget.listswiperitem
  • 继承自 Ext.Container (之前是 Ext.Container,Ext.Container)

Ext.dataview.listswiper.ListSwiper

  • 别名是 plugin.listswiper (之前是 plugin.listswiper,plugin.listswiper)
  • 继承自 Ext.plugin.Abstract (之前是 Ext.plugin.Abstract,Ext.plugin.Abstract)

Ext.dataview.listswiper.Stepper

  • 别名
    widget.listswiperstepper
    之前是
    widget.listswiperstepper,widget.listswiperstepper
  • 继承自
    Ext.dataview.listswiper.Item
    之前是
    Ext.dataview.listswiper.Item,Ext.dataview.listswiper.Item

Ext.dataview.selection.Model

  • 添加的配置
    • toggleOnClick

Ext.draw.sprite.Text

  • 修改的配置
    • textAlign
      • 类型是 "left"/"right"/"center"/"start"/"end" (之前是 String)

Ext.field.Container

  • 混入

    Ext.field.Manager,Ext.mixin.ConfigProxy,Ext.mixin.FieldDefaults
    之前是
    Ext.field.Manager,Ext.mixin.ConfigProxy

  • 添加的配置

    • fieldDefaults

Ext.field.Date

  • 添加的配置
    • altFormats

Ext.field.Field

  • 混入是 Ext.field.Dirty (之前是 undefined)

  • 添加的配置

    • dataType

Ext.field.Manager (受保护)

  • 添加的方法
    • getSubmitValues
  • 修改的方法
    • getValues
      • 参数更改
        • options (之前是 enabled)
        • all (已删除)

Ext.field.Number

  • 添加的配置
    • decimalSeparator

Ext.field.Panel

  • 混入
    Ext.field.Dirty,Ext.field.Manager,Ext.form.Borders
    之前是
    Ext.field.Manager,Ext.form.Borders

Ext.field.Radio

  • 添加的方法
    • getSameGroupFields

Ext.field.Text

  • 添加的配置
    • stripCharsRe

Ext.form.FieldSet

  • 混入

    Ext.form.Borders,Ext.mixin.FieldDefaults
    之前是
    Ext.form.Borders

  • 添加的配置

    • fieldDefaults

Ext.form.Panel

  • 混入是 Ext.mixin.FieldDefaults (之前是 undefined)

  • 添加的配置

    • fieldDefaults
    • jsonSubmit

Ext.grid.cell.Tree

  • 添加的配置
    • autoCheckChildren
    • checkable
    • checkableField
    • checkedField
    • checkOnTriTap
    • enableTri

Ext.grid.column.Column

  • 添加的配置
    • editorDefaults

Ext.grid.Grid

  • 添加的配置
    • enableColumnMove

Ext.list.Tree

  • 继承自 Object,Ext.Gadget (之前是 Ext.Gadget,Object)

Ext.list.TreeItem

  • 继承自 Object,Ext.list.AbstractTreeItem (之前是 Ext.list.AbstractTreeItem,Object)

Ext.Panel

  • 混入是 Ext.panel.Buttons,Ext.mixin.Toolable (之前是 Ext.mixin.Toolable)

  • 添加的配置

    • titleCollapse
  • 删除的配置
    • buttonAlign
    • minButtonWidth
    • standardButtons

Ext.panel.Collapser

  • 混入是 Ext.mixin.ConfigProxy (之前是 undefined)

  • 添加的配置

    • state (私有)

Ext.panel.Time

  • 添加的配置
    • alignPMInside
    • hourDisplayFormat
    • meridiem

Ext.Progress

  • 继承自 Object,Ext.Gadget (之前是 Ext.Gadget,Object)

Ext.sparkline.Base

  • 继承自 Object,Ext.Gadget (之前是 Ext.Gadget,Object)

Ext.tab.Bar

  • 添加的配置
    • tabRotation

Ext.tab.Panel

  • 添加的配置
    • autoOrientAnimation
    • tabRotation

Ext.tab.Tab

  • 添加的配置
    • rotation
    • tabPosition

Ext.Widget

  • 继承自 Object,Ext.Evented (之前是 Ext.Evented,Object)

  • 添加的配置

    • alignSelf
    • margin
  • 删除的配置
    • selfAlign

SDK 总计

  • 1,190 个类
  • 3,603 个配置
  • 1,300 个属性
  • 61 个静态属性
  • 4,713 个方法
  • 193 个静态方法
  • 715 个事件
  • 2,543 个变量
  • 98 个 Sass Mixins

Ext JS 7.8.0 - Modern Toolkit