Skip to content

Commit

Permalink
feat(ganttDb.js): add getters for excludes,sections and date format
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Würtz committed Jul 6, 2019
1 parent 6dce255 commit 6d20ccc
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/diagrams/gantt/ganttDb.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 6d20ccc

Please sign in to comment.