From 6d20ccccd083104672c1d3d9f936876902ee8407 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jason=20W=C3=BCrtz?= Date: Sat, 6 Jul 2019 11:54:18 -0300 Subject: [PATCH] feat(ganttDb.js): add getters for excludes,sections and date format --- src/diagrams/gantt/ganttDb.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/diagrams/gantt/ganttDb.js b/src/diagrams/gantt/ganttDb.js index 4d2464ae2..41a150430 100644 --- a/src/diagrams/gantt/ganttDb.js +++ b/src/diagrams/gantt/ganttDb.js @@ -39,10 +39,18 @@ export const setDateFormat = function (txt) { dateFormat = txt } +export const getDateFormat = function () { + return dateFormat +} + export const setExcludes = function (txt) { excludes = txt.toLowerCase().split(/[\s,]+/) } +export const getExcludes = function () { + return excludes +} + export const setTitle = function (txt) { title = txt } @@ -56,6 +64,10 @@ export const addSection = function (txt) { sections.push(txt) } +export const getSections = function () { + return sections +} + export const getTasks = function () { let allItemsPricessed = compileTasks() const maxDepth = 10 @@ -498,16 +510,19 @@ export const bindFunctions = function (element) { export default { clear, setDateFormat, + getDateFormat, setAxisFormat, getAxisFormat, setTitle, getTitle, addSection, + getSections, getTasks, addTask, findTaskById, addTaskOrg, setExcludes, + getExcludes, setClickEvent, setLink, bindFunctions