javascript - What is the purpose of classnames in angle brackets in definitions? -



javascript - What is the purpose of classnames in angle brackets in definitions? -

in question here on stack overflow (this one) have seen piece of code:

ext.define("app.view.leaders.myviewname", { extend: 'app.view.basepopup', xtype: 'myviewname', config: <ext.form.ipanel>{ scrollable: 'vertical', items: [ { xtype: 'fieldset', title: 'add new auto asset', instructions: '<hr class="separate" />', items: [ <ext.field.iselect>{ xtype: 'selectfield', label: 'borrower position', store: 'borrowerpositionselectorstore', }, <ext.field.iselect>{ xtype: 'selectfield', label: 'asset type', store: 'assettypeselectorstore', }, { xtype: 'textfield', name: '', label: 'description' }, { xtype: 'numberfield', name: '', label: 'value' } ] } ] } });

what purpose of <ext.form.ipanel>, <ext.form.iselect> tags before components definitions? can point me documentation on that?

it's typescript build generics, see: http://www.typescriptlang.org/handbook

to indicate type of object literal, use:

var square = <square>{};

javascript extjs sencha-touch sencha-touch-2 typescript

Comments

Popular posts from this blog

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -