svelte-gantt
Advanced tools
Comparing version 3.0.3-beta to 3.0.4-beta
{ | ||
"name": "svelte-gantt", | ||
"description": "Interactive JavaScript Gantt chart/resource booking component", | ||
"version": "3.0.3-beta", | ||
"version": "3.0.4-beta", | ||
"author": "Ante Novokmet <ante.je.zakon@gmail.com>", | ||
@@ -6,0 +6,0 @@ "repository": { |
@@ -104,3 +104,5 @@ # svelte-gantt | ||
- `offset` {`Number`} Duration width of header cell. | ||
- `sticky` {`Boolean`} Use sticky positioning for header labels. | ||
## Table Header | ||
@@ -175,2 +177,3 @@ | ||
- `id` {`Number`|`String`} Id of task | ||
- `unselectTasks()` Unselects tasks. | ||
- `scrollToTask(id, scrollBehavior)` Scrolls the view to a task. | ||
@@ -183,2 +186,18 @@ - `id` {`Number`|`String`} Id of task | ||
- `updateTask(model)` Updates or inserts task. | ||
- `model` {`Task`} Task object | ||
- `updateTasks(models)` Updates or inserts tasks. | ||
- `models` {`Array<Task>`} Task objects | ||
- `updateRow(model)` Updates or inserts row. | ||
- `model` {`Row`} Row object | ||
- `updateRows(models)` Updates or inserts rows. | ||
- `models` {`Array<Row>`} Row objects | ||
- `getTask(id)` Get task by id. | ||
- `id` {`Number`|`String`} Id of task | ||
- `getRow(id)` Get row by id. | ||
- `id` {`Number`|`String`} Id of row | ||
- `getTasks(rowId)` Get tasks by row id. | ||
- `rowId` {`Number`|`String`} Id of row | ||
## Events | ||
@@ -185,0 +204,0 @@ |
@@ -5,3 +5,3 @@ import { ColumnService } from './core/column'; | ||
import { DragDropManager } from './core/drag'; | ||
import { RowModel, RowFactory } from './core/row'; | ||
import { RowModel, RowFactory, SvelteRow } from './core/row'; | ||
import { TaskModel, TaskFactory, SvelteTask } from './core/task'; | ||
@@ -16,2 +16,3 @@ import { TimeRangeModel, TimeRangeFactory } from './core/timeRange'; | ||
offset?: number; | ||
sticky?: boolean; | ||
} | ||
@@ -116,6 +117,13 @@ interface Zoom { | ||
selectTask(id: number): any; | ||
unselectTasks(): any; | ||
scrollToTask(id: number, scrollBehavior?: string): any; | ||
scrollToRow(id: number, scrollBehavior?: string): any; | ||
updateTask(model: TaskModel): any; | ||
updateTasks(models: TaskModel[]): any; | ||
updateRow(model: RowModel): any; | ||
updateRowss(models: RowModel[]): any; | ||
getTask(id: any): SvelteTask; | ||
getTasks(resourceId: any): SvelteTask[]; | ||
getRow(id: any): SvelteRow; | ||
} | ||
export {}; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
1001431
12341
297