[ADD] web_widget_text_count

This commit is contained in:
Alexandre Saunier
2019-03-11 16:34:50 +01:00
committed by Denis Leemann
parent 8025ea938d
commit c4400a72f7
13 changed files with 616 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
* Yannick Vaucher <yannick.vaucher@camptocamp.com>
* Simone Orsi <simone.orsi@camptocamp.com>
* Vyshnevska Iryna <i.vyshnevska@mobilunity.com>

View File

@@ -0,0 +1,4 @@
Widget ``text_count`` displays a character counter next to the text field.
If in xml you setup additional attribute size for this field, counter will show
amount characters you left for this field, and will prohibit further input when
maximum is reached.

View File

@@ -0,0 +1,3 @@
Patch Text class on Python level to allow propagation of size same as in Char fields.
At the moment the size attribute can be applied only as an attribute on the <field/> tag.
Support inline position of the counter next to the textarea.

View File

@@ -0,0 +1,5 @@
.. code-block:: xml
<field name="text" widget="text_count" size="250"/>
or
<field name="text" widget="text_count"/>