Object ::YUI::loader (public)
::xotcl::Object ::YUI::loader
Defined in
- Testcases:
-
No testcase defined.
Source code:
namespace eval ::YUI {}
::nsf::object::alloc ::xotcl::Object ::YUI::loader {set :ajaxhelper 1}
::YUI::loader proc require {-module {-version "2.7.0b"}} {
switch -- [string tolower $module] {
utilities {
::xo::Page requireJS urn:ad:js:yui2:yahoo-dom-event/yahoo-dom-event
::xo::Page requireJS urn:ad:js:yui2:utilities/utilities
}
menubar {
:require -module "utilities"
foreach jsFile {
container/container-min
treeview/treeview-min
button/button-min
menu/menu-min
datasource/datasource-min
autocomplete/autocomplete-min
datatable/datatable-min
selector/selector-min
} {
::xo::Page requireJS urn:ad:js:yui2:$jsFile
}
:require -module "reset-fonts-grids"
:require -module "base"
foreach cssFile {
container/assets/container
datatable/assets/skins/sam/datatable
button/assets/skins/sam/button
assets/skins/sam/skin
menu/assets/skins/sam/menu
treeview/assets/folders/tree
} {
::xo::Page requireCSS urn:ad:css:yui2:$cssFile
}
}
datatable {
:require -module "utilities"
foreach jsFile {
container/container-min
treeview/treeview-min
button/button-min
menu/menu-min
datasource/datasource-min
autocomplete/autocomplete-min
datatable/datatable-min
selector/selector-min
} {
::xo::Page requireJS urn:ad:js:yui2:$jsFile
}
:require -module "reset-fonts-grids"
:require -module "base"
foreach cssFile {
container/assets/container
datatable/assets/skins/sam/datatable
button/assets/skins/sam/button
assets/skins/sam/skin
menu/assets/skins/sam/menu
} {
::xo::Page requireCSS urn:ad:css:yui2:$cssFile
}
}
reset {
::xo::Page requireCSS urn:ad:css:yui2:reset/reset
}
fonts {
::xo::Page requireCSS urn:ad:css:yui2:fonts/fonts-min
}
grids {
::xo::Page requireCSS urn:ad:css:yui2:grids/grids
}
base {
::xo::Page requireCSS urn:ad:css:yui2:base/base
}
"reset-fonts-grids" {
::xo::Page requireCSS urn:ad:css:yui2:reset-fonts-grids/reset-fonts-grids
}
}
}
XQL Not present:Generic, PostgreSQL, Oracle
[
hide source ]
| [
make this the default ]