Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How does extjs Ext.require() works

Tags:

extjs

I understand that lets say if we have,

Ext.require([
  'Ext.ux.grid.FiltersFeature',
  'Ext.toolbar.Paging'
]);

it will translate those entries into some_path/ux/grid/FilterFeature.js etc

but how does

Ext.require([
  'Ext.grid.*',
]);

is going to work? it doent know how many js files are below grid/ directory so from client side how can it load them?, is it stuff like lazy loading, i mean if some other file has child js entry it will allow loading?

Thanks

like image 393
duckduckgo Avatar asked Apr 16 '13 05:04

duckduckgo


1 Answers

As part of the build process, we generate a "bootstrap" file which contains information about which files exist. So it doesn't query the filesystem, it just asks the bootstrap for everything under Ext.grid.

like image 94
Evan Trimboli Avatar answered Oct 05 '22 23:10

Evan Trimboli