Ext的xtype

2019独角兽企业重金招聘Python工程师标准>>> Ext的xtype
文章图片

项目需要,弄了一天的EXT的布局,恶心死了
真心觉得ext给力,因为写布局的时候用到了xtype,特意从网上找到的列表,在这里备注下。

xtypeClass ------------------------------- boxExt.BoxComponent buttonExt.Button buttongroupExt.ButtonGroup colorpaletteExt.ColorPalette componentExt.Component containerExt.Container cycleExt.CycleButton dataviewExt.DataView datepickerExt.DatePicker editorExt.Editor editorgridExt.grid.EditorGridPanel flashExt.FlashComponent gridExt.grid.GridPanel listviewExt.ListView multisliderExt.slider.MultiSlider panelExt.Panel progressExt.ProgressBar propertygridExt.grid.PropertyGrid sliderExt.slider.SingleSlider spacerExt.Spacer splitbuttonExt.SplitButton tabpanelExt.TabPanel treepanelExt.tree.TreePanel viewportExt.ViewPort windowExt.WindowToolbar components --------------------------------------- pagingExt.PagingToolbar toolbarExt.Toolbar tbbuttonExt.Toolbar.Button(deprecated; use button) tbfillExt.Toolbar.Fill tbitemExt.Toolbar.Item tbseparatorExt.Toolbar.Separator tbspacerExt.Toolbar.Spacer tbsplitExt.Toolbar.SplitButton(deprecated; use splitbutton) tbtextExt.Toolbar.TextItemMenu components --------------------------------------- menuExt.menu.Menu colormenuExt.menu.ColorMenu datemenuExt.menu.DateMenu menubaseitemExt.menu.BaseItem menucheckitemExt.menu.CheckItem menuitemExt.menu.Item menuseparatorExt.menu.Separator menutextitemExt.menu.TextItemForm components --------------------------------------- formExt.form.FormPanel checkboxExt.form.Checkbox checkboxgroupExt.form.CheckboxGroup comboExt.form.ComboBox compositefieldExt.form.CompositeField datefieldExt.form.DateField displayfieldExt.form.DisplayField fieldExt.form.Field fieldsetExt.form.FieldSet hiddenExt.form.Hidden htmleditorExt.form.HtmlEditor labelExt.form.Label numberfieldExt.form.NumberField radioExt.form.Radio radiogroupExt.form.RadioGroup textareaExt.form.TextArea textfieldExt.form.TextField timefieldExt.form.TimeField triggerExt.form.TriggerFieldChart components --------------------------------------- chartExt.chart.Chart barchartExt.chart.BarChart cartesianchartExt.chart.CartesianChart columnchartExt.chart.ColumnChart linechartExt.chart.LineChart piechartExt.chart.PieChartStore xtypes --------------------------------------- arraystoreExt.data.ArrayStore directstoreExt.data.DirectStore groupingstoreExt.data.GroupingStore jsonstoreExt.data.JsonStore simplestoreExt.data.SimpleStore(deprecated; use arraystore) storeExt.data.Store xmlstoreExt.data.XmlStore

总结一下,xtype感觉比new方法创造的组件方便的多,但是唯一的缺点是这货没有校验功能,少写个字母都要找半天。 【Ext的xtype】转载于:https://my.oschina.net/zimingforever/blog/77984

    推荐阅读