From: Wolfram Schneider Date: Fri, 24 Oct 2014 09:58:44 +0000 (+0000) Subject: Merge branch 'master' of ssh://git.indexdata.com:222/home/git/pub/mkws X-Git-Tag: 1.0.0~112^2 X-Git-Url: http://git.indexdata.com/?p=mkws-moved-to-github.git;a=commitdiff_plain;h=f9dd55354cf5b57e9e2fb83f9a4af9e251b1a407;hp=024d551e4cd0fe5c48c09b1b66e749e7090def22 Merge branch 'master' of ssh://git.indexdata.com:222/home/git/pub/mkws --- diff --git a/doc/mkws-manual.markdown b/doc/mkws-manual.markdown index 79ae4d4..b920dc8 100644 --- a/doc/mkws-manual.markdown +++ b/doc/mkws-manual.markdown @@ -51,7 +51,7 @@ MKWS classes in any HTML page, the various components of an application can be embedded: search-boxes, results areas, target information, etc. -Simple Example +Simple example ============== The following is @@ -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: @@ -132,31 +141,56 @@ The main widgets are: To see all of these working together, just put them all into the HTML `` like so: -
-
-
- -
-
-
+
+
+
+ +
+
+
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, +`