ExtJS中的评分表
Rating Form in ExtJS
我正试图从Sencha的在线示例中复制示例评级表。我不明白为什么我会得到这个错误:
[ERR] BUILD FAILED
[ERR] com.sencha.exceptions.ExBuild: Failed to find any files for C:'users'Diederiksj'Desktop'FreshApp'classic'src'view'form'RatingForm.js::ClassRequire::Ext.ux.rating.Picker
[ERR] at com.sencha.command.BasePluginCommands$BasePluginCommand.doExecute(BasePluginCommands.
[ERR] java:99)
[ERR]
[ERR] Total time: 3 seconds
[ERR] The following error occurred while executing this line:
C:'users'Diederiksj'Desktop'FreshApp'.sencha'app'build-impl.xml:247: The following error occurred while executing this line:
C:'users'Diederiksj'Desktop'FreshApp'.sencha'app'watch-impl.xml:61: The following error occurred while executing this line:
C:'users'Diederiksj'Desktop'FreshApp'.sencha'app'build-impl.xml:380: The following error occurred while executing this line:
C:'users'Diederiksj'Desktop'FreshApp'.sencha'app'init-impl.xml:382: com.sencha.exceptions.ExBuild: Failed to find any files for C:'users'Diederiksj'Desktop'FreshApp'classic'src'view'form'RatingForm.js::ClassRequire::Ext.ux.rating.Picker
当我在AppRootDirectory/ext/packages/ux/classic/src/rating
中查看时,Picker.js
文件就在那里,它是由ExtJS在生成应用程序时自动创建的。以下是我试图要求Picker类的课堂摘录:
Ext.define('FreshApp.view.form.RatingForm', {
extend: 'Ext.panel.Panel',
xtype: 'form-rating',
requires: [
'Ext.ux.rating.Picker'
],
title: 'Rating Form',
viewModel: true,
bodyPadding: 10,
width: 520,
height: 500,
minHeight: 400,
resizable: true,
frame: true,
layout: {
type: 'vbox',
align: 'stretch'
},
defaultType: 'textfield',
如有任何帮助,我们将不胜感激。谢谢
您需要指定您的应用程序需要ux包。您可以通过在app.json.中添加以下代码段来实现这一点
"requires": [
"ux"
],
相关文章:
- (extjs)获取表单中单选按钮的选定值.不返回该值
- 在extJS 4.2中,有没有一种方法可以将模型值动态绑定到表单
- 如何将onChange方法添加到ExtJS 4表单中的所有字段(textField)中
- 如何在ExtJS中用表单更新商店
- ExtJS - 表单提交
- Extjs 3.3动态地将字段添加到表单中,并设置它们的标签宽度
- ExtJS中的评分表
- ExtJS文件上传表单方法
- extjs,如何在表单操作中绑定事件
- 如何在 extjs 中加载嵌套表单
- ExtJS:网格和表单之间的双向绑定
- ExtJS v3 - 从表单面板内的网格面板访问数据
- 如何更改 extjs 中可浮动表单的位置
- extjs 表单使用 Ext.DIrect 提交
- ExtJS MVC 表单引用
- 如何在 extjs 中动态创建表行
- 为什么我的 ExtJS 表单没有提交
- extjs 表单字段宽度不正确
- 在 extjs 中动态生成的表单中进行验证
- extjs 4 表单加载记录实际上不会加载它