diff --git a/samples/react-kanban-board/src/webparts/kanbanBoard/components/KanbanBoard.tsx b/samples/react-kanban-board/src/webparts/kanbanBoard/components/KanbanBoard.tsx index 0571bddc1..0172a05a7 100644 --- a/samples/react-kanban-board/src/webparts/kanbanBoard/components/KanbanBoard.tsx +++ b/samples/react-kanban-board/src/webparts/kanbanBoard/components/KanbanBoard.tsx @@ -16,12 +16,12 @@ import JqxKanban, { IKanbanProps, jqx, IKanbanSource } from 'jqwidgets-scripts/j const rowStyle1: IStackStyles = { root:{ flexBasis:"30%" - } + } }; const rowStyle2: IStackStyles = { root:{ flexBasis:"70%" - } + } }; export interface ICustomKanbanProps extends IKanbanProps{ @@ -95,11 +95,11 @@ export default class KanbanBoard extends React.Component { const el = this.state.showBoard ? - !this.state.noItems ? { + private _getData = (listTitle) => { if(listTitle && listTitle.length > 0) { sp.web.lists.getByTitle(listTitle).fields.getByInternalNameOrTitle("Status").get() .then(status => { - + const cols = status.Choices.map((val,index) => { return { text: val, dataField: val }; }); - + sp.web.lists.getByTitle(listTitle).items.getAll().then(res => { - + const source = { dataFields: this.sourceFields, dataType: 'array', localData: [ ...res ] }; - + sp.web.siteUsers.get().then(users => { const resourcesAdapterFunc = (): any => { const resourcesSource = { @@ -215,7 +215,7 @@ export default class KanbanBoard extends React.Component { + private _updateTask = (event: any): void => { let args = event.args; // let itemId = args.itemId; // let oldParentId = args.oldParentId; @@ -249,7 +249,7 @@ export default class KanbanBoard extends React.Component { + private _showTask = (event:any): void => { if(event.args.attribute === "template") { this.setState({ @@ -257,11 +257,11 @@ export default class KanbanBoard extends React.Component { + private _closeDialog = (): void => { this.setState({ hideDialog: true }); } }