summaryrefslogtreecommitdiff
path: root/doc/reference
diff options
context:
space:
mode:
authorXavier Morel <xmo@odoo.com>2018-04-05 12:26:27 +0200
committerXavier Morel <xmo@odoo.com>2018-04-05 12:31:27 +0200
commit4e784adbf7ecac4b4f2c86b286c51de52a448604 (patch)
treec98633cbc3fb94acbe3a3bc42ce403479878fd55 /doc/reference
parent9b6ca49b582e63c6be446f164d318115f47b29d5 (diff)
[FIX] doc: non-module JS autodocumenters
Also when there is both a docstring and directive-level content put the docstring first. That seems to match what Sphinx's autodoc does and looks less odd. Possible future improvement: a parameter to suppress the docstring? Possibly a way to reorder the non-docstring content (e.g. members documentation)?
Diffstat (limited to 'doc/reference')
-rw-r--r--doc/reference/javascript_reference.rst20
1 files changed, 9 insertions, 11 deletions
diff --git a/doc/reference/javascript_reference.rst b/doc/reference/javascript_reference.rst
index f27975742fe..b77aa9f5612 100644
--- a/doc/reference/javascript_reference.rst
+++ b/doc/reference/javascript_reference.rst
@@ -1,5 +1,9 @@
:banner: banners/javascript.jpg
+.. highlight:: javascript
+
+.. default-domain:: js
+
=====================
Javascript Reference
=====================
@@ -1644,19 +1648,13 @@ order.
Relational fields
-----------------
-- selection (FieldSelection)
- The FieldSelection widget is a simple select tag with a dropdown menu to
- allow the selection of a range of values. It is designed to work with fields
- of type 'selection' and 'many2one'. When working with a many2one, it does
- not allow the creation/edition of relational data. This is the default field
- for selection fields.
+.. autoclass:: web.relational_fields.FieldSelection
- - Supported field types: *selection, many2one*
+ Supported field types: *selection*, *many2one*
- Attributes:
+ .. attribute:: placeholder
- - placeholder: a string which is used to display some info when no value is
- selected
+ a string which is used to display some info when no value is selected
.. code-block:: xml
@@ -1816,4 +1814,4 @@ Relational fields
.. _event delegation:
http://api.jquery.com/delegate/
-.. _deferred: http://api.jquery.com/category/deferred-object/ \ No newline at end of file
+.. _deferred: http://api.jquery.com/category/deferred-object/