add Ext.define()

master
inpos 2018-08-14 10:50:35 +03:00
parent b3bd55b4ff
commit 75ee3b188f
1 changed files with 3 additions and 0 deletions

View File

@ -22,6 +22,9 @@ def _create(meth, name, args):
def create(name, args={}):
return _create('create', name, args)
def define(name, args={}):
js.write('Ext.define(\'%s\', %s);' % (name, js.encode(args)))
def createByAlias(alias, args={}):
return _create('createByAlias', alias, args)