X-Git-Url: http://git.indexdata.com/?p=mkws-moved-to-github.git;a=blobdiff_plain;f=doc%2Fmkws-manual.markdown;h=a275051c49de440de9c78200f1571f56a9a75601;hp=79ae4d4b5913d62dcf64d9d94a5f657efcdc2702;hb=a18584cadc9d704b512b0c4ea30234b62750ff1f;hpb=fd5d0f9300f108fd5d1b867ef6bd187d16bb05c7 diff --git a/doc/mkws-manual.markdown b/doc/mkws-manual.markdown index 79ae4d4..a275051 100644 --- a/doc/mkws-manual.markdown +++ b/doc/mkws-manual.markdown @@ -99,8 +99,17 @@ and provide the components of the searching UI. The very simple application above has only two such widgets: a search box and a results area. But more are supported. -Widget Elements -=============== +Defining Widget Elements +======================== + +Widget type +----------- + +An HTML element is made an MKWS widget by including an MKWS +class-name. These names begin `mkws-`: what follows that prefix +specifies the type of the widget. The type can be any sequence of +alphanumeric characters and hyphens _except_ something beginning +`team` -- see below. The main widgets are: @@ -143,17 +152,39 @@ To see all of these working together, just put them all into the HTML The full set of supported widgets is described in the reference guide below. +Widget team +----------- + +In general a set of widgets work together in a team: in the example +above, the search-term that the user enters in the `mkws-search` +widget is used to generate the set of records that are displayed in +the `mkws-results` widget. + +Sometimes, it's desirable to have multiple teams in a single page. A +widget can be placed in a named team by giving it (in addition to its +main class) a class that begins with `mkws-team-`: what follows that +prefix specifies the team that the widget is part of. For example, +`