ng-sortable
Version:
Angular Library for Drag and Drop, supports Sortable and Draggable.
41 lines (35 loc) • 588 B
JavaScript
/*jshint undef: false, unused: false, indent: 2*/
/*global angular: false */
;
function Board(name, numberOfColumns) {
return {
name: name,
numberOfColumns: numberOfColumns,
columns: [],
backlogs: []
};
}
function Column(name) {
return {
name: name,
cards: []
};
}
function Backlog(name) {
return {
name: name,
phases: []
};
}
function Phase(name) {
return {
name: name,
cards: []
};
}
function Card(title, status, details) {
this.title = title;
this.status = status;
this.details = details;
return this;
}