Function useCreateTopicModal
- useCreateTopicModal(__namedParameters): {
handleAlgorithmChange: ((algorithms) => void);
handleCalculateLearningPaths: ((userId, userRole, university, courseId, topicId) => Promise<LearningPathBasedOn>);
handleCreate: ((topicName, lmsCourseId, selectedLearningElementsClassification, algorithmShortName, courseId?) => Promise<void>);
handleCreateLearningElements: ((learningElementName, learningElementActivityType, learningElementClassification, lmsLearningElementId, topicId, user) => Promise<LearningElement>);
handleCreateLearningElementsInExistingTopic: ((topicLmsId, selectedLearningElementsClassification, topicId?, courseId?) => Promise<void>);
handleLearningElementChange: ((learningElements) => void);
handleLearningElementClassification: ((learningElementClassifications) => void);
handleLearningElementSolutionChange: ((learningElementSolution) => void);
handleSolutionsChange: ((solutions) => void);
handleTopicChange: ((topics) => void);
}
-
Returns {
handleAlgorithmChange: ((algorithms) => void);
handleCalculateLearningPaths: ((userId, userRole, university, courseId, topicId) => Promise<LearningPathBasedOn>);
handleCreate: ((topicName, lmsCourseId, selectedLearningElementsClassification, algorithmShortName, courseId?) => Promise<void>);
handleCreateLearningElements: ((learningElementName, learningElementActivityType, learningElementClassification, lmsLearningElementId, topicId, user) => Promise<LearningElement>);
handleCreateLearningElementsInExistingTopic: ((topicLmsId, selectedLearningElementsClassification, topicId?, courseId?) => Promise<void>);
handleLearningElementChange: ((learningElements) => void);
handleLearningElementClassification: ((learningElementClassifications) => void);
handleLearningElementSolutionChange: ((learningElementSolution) => void);
handleSolutionsChange: ((solutions) => void);
handleTopicChange: ((topics) => void);
}
-
handleAlgorithmChange: ((algorithms) => void)
-
- (algorithms): void
-
Returns void
-
handleCalculateLearningPaths: ((userId, userRole, university, courseId, topicId) => Promise<LearningPathBasedOn>)
-
- (userId, userRole, university, courseId, topicId): Promise<LearningPathBasedOn>
-
Parameters
-
userId: number
-
userRole: string
-
university: string
-
courseId: string
-
topicId: number
-
handleCreate: ((topicName, lmsCourseId, selectedLearningElementsClassification, algorithmShortName, courseId?) => Promise<void>)
-
- (topicName, lmsCourseId, selectedLearningElementsClassification, algorithmShortName, courseId?): Promise<void>
-
Parameters
-
topicName: string
-
lmsCourseId: number
-
-
algorithmShortName: string
-
Optional
courseId: string
Returns Promise<void>
-
handleCreateLearningElements: ((learningElementName, learningElementActivityType, learningElementClassification, lmsLearningElementId, topicId, user) => Promise<LearningElement>)
-
- (learningElementName, learningElementActivityType, learningElementClassification, lmsLearningElementId, topicId, user): Promise<LearningElement>
-
Parameters
-
learningElementName: string
-
learningElementActivityType: string
-
learningElementClassification: string
-
lmsLearningElementId: number
-
topicId: number
-
-
handleCreateLearningElementsInExistingTopic: ((topicLmsId, selectedLearningElementsClassification, topicId?, courseId?) => Promise<void>)
-
- (topicLmsId, selectedLearningElementsClassification, topicId?, courseId?): Promise<void>
-
Parameters
-
topicLmsId: number
-
-
Optional
topicId: string
-
Optional
courseId: string
Returns Promise<void>
-
handleLearningElementChange: ((learningElements) => void)
-
- (learningElements): void
-
Returns void
-
handleLearningElementClassification: ((learningElementClassifications) => void)
-
- (learningElementClassifications): void
-
Returns void
-
handleLearningElementSolutionChange: ((learningElementSolution) => void)
-
- (learningElementSolution): void
-
Returns void
-
handleSolutionsChange: ((solutions) => void)
-
- (solutions): void
-
Parameters
-
solutions: {
[topicId: number]: Solution[];
}
Returns void
-
handleTopicChange: ((topics) => void)
-
- (topics): void
-
Returns void
Helper function for creating learning elements