Привет У меня есть Ext.Toolbar с элементами формы в нем, включая FileUploadField. Я хотел бы иметь возможность отправить эту «форму» с помощью Ext.form.BasicForm. Как мне это сделать? В идеале он должен вести себя как FormPanel с помощью ToolbarLayout (хотя это не отображается правильно).Bind BasicForm to Ext.Toolbar
2
A
ответ
1
Я только попробовал другой путь, и это, кажется, работает нормально (с помощью формы внутри панели инструментов), по крайней мере, для рендеринга части ...
Вы можете попробовать его с этой панели инструментов кода. ..
var toolBarConversationList = new Ext.Toolbar({
items:[
{
xtype: 'button',
text: 'Some Button'
},
{xtype: 'tbfill'},
{
xtype: 'form',
id: 'toolbarForm',
border: false,
bodyStyle: {
background: 'transparent',
marginTop: 3
},
items: [
{
xtype: 'textfield',
name: 'form.text',
fieldLabel: 'Some Text'
}
]
}
});
Если вы хотите, вы можете создать ярлык с меткойStyle в каждом поле. Если вы хотите добавить больше полей, вы можете использовать макет столбца и макет формы для каждого из полей.
Чтобы отправить форму, вы могли бы использовать Ext.getCmp('toolbarForm').getForm().submit();
Я надеюсь, что это то, что вы ищете ...
Смежные вопросы
- 1. Bind listbox to ObservableCollection
- 2. Bind datasource to datagridview
- 3. Bind Core to ocamldoc
- 4. Bind Collection to StackPanel
- 5. Bind IBitmap to ImageView
- 6. bind ip to subdomain
- 7. Bind Datatable to Repeater
- 8. Bind boolean to class
- 9. Bind CheckListBox to ViewModel
- 10. bind textbox to selectlist
- 11. Bind to self class
- 12. Bind ListBox to XmlDocument
- 13. Bind POCO to UserControl
- 14. android bind to AccessibilityService
- 15. Bind customObject to DataGrid
- 16. Bind Collections To Gridview
- 17. Bind xml to combobox
- 18. Bind collection to Grid
- 19. bind ip to subdomain
- 20. Bind TabItem to List
- 21. Bind to ListBox
- 22. Bind MediaStreamSource to MediaElement
- 23. To Bind RadGrid Dynamicically
- 24. Boost Bind to Method
- 25. Bind datagable to datagrid
- 26. Bind to Caps Lock
- 27. Nhibernate bind to DataGridView
- 28. Bind boolean to visualstate
- 29. Bind Service to BroadcastReceiver
- 30. Bind IntegerProperty to DoubleProperty
Привет, спасибо за ответ. В итоге я понял, как это сделать с помощью нескольких пользовательских правил CSS, если вы поместите панель инструментов внутри панели формы, чтобы она была более или менее. – 2010-08-11 18:02:10