From 84bc571395a775ec157db72a69e6ade9d40370aa Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Fri, 29 Mar 2013 14:38:45 +0100 Subject: [PATCH] updated dev docs with new changes to the appframework --- developer_manual/app/appframework/angular.rst | 32 ++++++++++++++++--- .../app/appframework/api/db_entity.rst | 16 +++++++--- .../app/appframework/api/db_mapper.rst | 1 + .../app/appframework/api/http_request.rst | 19 +++-------- .../api/utility_mappertestutility.rst | 1 + .../app/appframework/database.rst | 11 ++++++- 6 files changed, 55 insertions(+), 25 deletions(-) diff --git a/developer_manual/app/appframework/angular.rst b/developer_manual/app/appframework/angular.rst index 87107fad2..09e49987a 100644 --- a/developer_manual/app/appframework/angular.rst +++ b/developer_manual/app/appframework/angular.rst @@ -68,7 +68,7 @@ Simple object that can be used for displaying loading notifcations. It has an in Example: -.. code-block:: python +.. code-block:: js loading = new Loading() loading.isLoading() # false @@ -264,7 +264,7 @@ Because AngularJS getters have to be fast (Angular checks for changed objects af To query an object with a **_BiggerThanQuery** use its **get** method: -.. code-block:: python +.. code-block:: js valuesBiggerThan4 = myModel.get(new _BiggerThanQuery('id', 4)) @@ -284,7 +284,7 @@ You can override this method if you need to. The **exec** method is used to run A query that would select only ids between a range of numbers would look like this: -.. code-block:: python +.. code-block:: ruby angular.module('YourApp').factory '_LessThanQuery', ['_Query', (_Query) -> @@ -309,7 +309,7 @@ A query that would select only ids between a range of numbers would look like th If **hashCode** is not overwritten it would produce the following output: -.. code-block:: python +.. code-block:: ruby query = new _RangeQuery('id', 3, 6) query.hashCode() # prints range_id_3_6 @@ -330,10 +330,12 @@ Can be enhanced by passing an expression: { selector: '#jquery .selector' hideOnFocusLost: true + cssClass: 'opened' } * **selector**: if defined, a different area is slid up on click * **hideOnFocusLost**: if defined, the slid up area will hide when the focus is lost +* **cssClass**: if defined, the class which should be toggled on the element where the directive is bound to Example: @@ -342,6 +344,28 @@ Example: