Methods
# setImageSizeForMaxWidth(imageSizeFunction)
It is used to set the maximum width of images that are displayed in the LearnDash LMS questions.
Parameters:
Name | Type | Description |
---|---|---|
imageSizeFunction |
OverrideQuestionImageSizeCallback |
Example
externalCodeSetup.questionApiHooks.setImageSizeForMaxWidth( (isPopup, defaultMaxWidth) => {
return defaultMaxWidth + 100;
})