X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=doc%2Fmkws-developer.markdown;h=36a7e2fa6ca851662afe785f12590865d43572a5;hb=e25ee669e5ff2632118cc16cd97ebdec65dc5498;hp=d6a9aa48afe24604f9121432f4b71e3c33f43c19;hpb=f18fa1c0435899556944a3569b3b3c9d5cc20e75;p=mkws-moved-to-github.git diff --git a/doc/mkws-developer.markdown b/doc/mkws-developer.markdown index d6a9aa4..36a7e2f 100644 --- a/doc/mkws-developer.markdown +++ b/doc/mkws-developer.markdown @@ -151,8 +151,7 @@ This simple widget illustrates several important points: * You can add functionality to a widget by subscribing it to an event's queue using `this.team.queue("EVENT").subscribe`. The argument is a function which is called whenever the event is - published. The arguments to the event-callback function are - different for different events. + published. * As with so much JavaScript programming, the value of the special variable `this` is lost inside the `subscribe` callback function, @@ -343,7 +342,32 @@ complete major-release cycle. Events ------ -FIXME: list of events that can be usefully subscribed to. +The following events are generated by the widget-set code: + +* `authenticated` (authName, realm) + +* `ready` + +* `log` (m_teamName, timestamp, s) + +* `targets` (data) + +* `stat` (data) + +* `firstrecords` (hitcount) + +* `complete` (hitcount) + +* `facets` (data) + +* `pager` (data) + +* `records` (data) + +* `record` (data) + +* `navi` -- consult `team.filters`. + - - -