From 389b291d98d5570cb7dd07d272bab96637a82f7f Mon Sep 17 00:00:00 2001 From: Salvatore Iovene Date: Fri, 9 Nov 2012 12:32:24 +0200 Subject: [PATCH] Documents error codes. --- docs/templates/pages/javascript.mustache | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/docs/templates/pages/javascript.mustache b/docs/templates/pages/javascript.mustache index 7a83dbf..fd39c23 100644 --- a/docs/templates/pages/javascript.mustache +++ b/docs/templates/pages/javascript.mustache @@ -87,8 +87,9 @@ $('#myModal').on('show', function (e) {
  • {{_i}}A base widget class{{/i}}
  • {{_i}}A "page" widget{{/i}}
  • {{_i}}Widget registration{{/i}}
  • -
  • {{_i}}Forcing sizing restrictions to widgets that implement them{{/i}}
  • +
  • {{_i}}Verifying sizing restrictions to widgets that implement them{{/i}}
  • {{_i}}Setting day/night modes to widgets that implement them{{/i}}
  • +
  • {{_i}}Setting driving mode to widgets that support it{{/i}}
  • {{_i}}Setting themes{{/i}}
  • @@ -101,7 +102,19 @@ $('#myModal').on('show', function (e) {
  • maxWidth ({{_i}}default{{/i}}: 0): {{_i}}the maximum font-size a widget is allowed to have.{{/i}}
  • disableWhenDriving ({{_i}}default{{/i}}: false): {{_i}}whether the widget should be disabled when the framework switches to Driving Mode.{{/i}}
  • -

    {{_i}}Values of 0, above, mean that the property should not be enforced.{{/i}}

    +

    {{_i}}Values of 0, above, mean that the property should not be verified.{{/i}}

    + +

    {{_i}}Error messages{{/i}}

    +

    {{_i}}Cowhide will perform certain runtime checks on your app, and print out error messages on your browser's console, if necessary. Here thy are:{{/i}}

    +

    {{_i}}Setting themes{{/i}}

    {{_i}}Cowhide requires your page to have a link element with id="cowhide-theme". You will then be able to do the following:{{/i}}

    -- 2.7.4