From f54a761db39be7f87a21db6a7bb16858b45a6fab Mon Sep 17 00:00:00 2001
From: OCA-git-bot
Date: Tue, 8 Jan 2019 08:40:22 +0000
Subject: [PATCH] [UPD] README.rst
---
web_timeline/README.rst | 1 -
web_timeline/static/description/index.html | 6 ++++++
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/web_timeline/README.rst b/web_timeline/README.rst
index c88d1ee47..16db743db 100755
--- a/web_timeline/README.rst
+++ b/web_timeline/README.rst
@@ -93,7 +93,6 @@ Example:
string="Tasks"
default_group_by="user_id"
event_open_popup="true"
- margin='{"item":{"horizontal":-10}}'
zoomKey="ctrlKey"
colors="#ec7063:user_id == false;#2ecb71:kanban_state=='done';"
dependency_arrow="task_dependency_ids">
diff --git a/web_timeline/static/description/index.html b/web_timeline/static/description/index.html
index f2714f975..ec8a80640 100644
--- a/web_timeline/static/description/index.html
+++ b/web_timeline/static/description/index.html
@@ -431,6 +431,12 @@ the possible attributes for the tag:
No |
Specifies the initial visible window. Available values are: ‘day’ to display the current day, ‘week’, ‘month’ and ‘fit’. Default value is ‘fit’ to adjust the visible window such that it fits all items. |
+margin |
+No |
+Specifies the margins around the items. It should respect the JSON format. For example ‘{“item”:{“horizontal”:-10}}’. Available values are: ‘{“axis”:<number>}’ (The minimal margin in pixels between items and the time axis)
+‘{“item”:<number>}’ (The minimal margin in pixels between items in both horizontal and vertical direction), ‘{“item”:{“horizontal”:<number>}}’ (The minimal horizontal margin in pixels between items),
+‘{“item”:{“vertical”:<number>}}’ (The minimal vertical margin in pixels between items), ‘{“item”:{“horizontal”:<number>,”vertical”:<number>}}’ (Combination between horizontal and vertical margins in pixels between items). |
+
event_open_popup |
No |
When set to true, it allows to edit the events in a popup. If not (default value), the record is edited changing to form view. |