/**
* @class
* Add Topic Screen Hooks.
* Instance name: addTopicScreenHooksApi
The AddTopicScreenHooksApi() can be used to modify the "Add Topic" screen options.
* @example
* externalCodeSetup.addTopicScreenHooksApi.METHOD_NAME
*/
export class AddTopicScreenHooksApi {
/**
* Hides BuddyBoss media upload view.
* @private
* @property {isMediaHidden} boolean
*/
isMediaHidden = false;
/**
* You can use the hook to hide the Media Upload feature from the "Add Topic" screen.
* @method
* @example
*
* externalCodeSetup.addTopicScreenHooksApi.hideMediaOptions();
*/
hideMediaOptions = () => {
this.isMediaHidden = true;
};
/**
* Hide tags input
* @private
* @property {areTagsHidden} boolean
*/
areTagsHidden = false;
/**
* Hide the option to input tags from the "Add Topic" screen.
* @method
* @example
*
* externalCodeSetup.addTopicScreenHooksApi.hideTags();
*/
hideTags = () => {
this.areTagsHidden = true;
};
isNotifyViaEmailHidden = false;
/**
* Hides the component that the user can enable to notify him of follow-up replies via email.
* @method
*
* @example
* externalCodeSetup.addTopicScreenHooksApi.hideNotifyViaEmail();
*/
hideNotifyViaEmail = () => {
this.isNotifyViaEmailHidden = true;
};
}
Source