addExhibitInterceptorsAndOverides() to access Exhibit facets and views (use exhibit.getComponent() instead)
Log-in
|
Macros
:
addExhibitInterceptorsAndOverides() to access Exhibit facets and views (use exhibit.getComponent() instead)
Top Menu
Show
:
Comments
Attachments
History
Information
Print
:
Print
Print preview
Export as PDF
Export as RTF
Export as HTML
Export as XAR
Wiki code for
addExhibitInterceptorsAndOverides() to access Exhibit facets and views (use exhibit.getComponent() instead)
Hide Line numbers
1: ## XWiki.JavaScriptExtension[0] contains previous addExhibitInterceptorsAndOverides() 2: ## which sets globals to access various Exhibit facets and views, as well as the 3: ## Timeline widget. Turns out the same thing can be achieved much better by 4: ## naming (id="the-search-facet") the exhibit HTML element and then calling 5: ## exhibit.getComponent("episodes-timeline-view") to get back the exhibit UI object. 6: ## the_tl_obj = exhibit.getComponent("episodes-timeline-view")._timeline 7: ## the_tl_event_src = exhibit.getComponent("episodes-timeline-view")._eventSource 8: 9: 10: ## Called out of XWiki.JavaScriptExtension[2]:onLoadExhibit() via macro 11: ## #exhibit_create(). This allows overriding existing Exhibit code by 12: ## importing another Macro/Document after Macros.Exhibit to redefine 13: ## addExhibitInterceptorsAndOverides(), e.g.: 14: ## #includeMacros("Macros.Exhibit")## 15: ## #exhibit_xwiki_init()## 16: ## #includeMacros("Macros.ExhibitInterceptorsJS")## 17: ## #exhibitinterceptors_xwiki_init()## 18:
Search
Navigation:
Home
What's New
Site Timeline
Featured Apps:
NPR Podcasts
Fav Music Podcasts
KCRW Podcasts
Exhibit Presidents
Topics:
NPM's Blog ...
Site News
Photos
Todos
Sandbox
Fedora10
Timeline
Exhibit
CreateResources
Recently Modified
$rdoc.displayTitle
|
XWikiPreferences
|
XWikiAllGroup
|
NielsMayer.com
|
ShellScriptReturningListOfOldKernels
Recently Created
ShellScriptReturningListOfOldKernels
|
HowToHackPluginsForFireFox3_5_x86_64
|
FeedExperiment4
|
Thinbox
|
JWPlayer2