Llewellyn van der Merwe
d9f5a1aebc
- Add modal implementation with automatic detection for four specific libraries. - Introduce inline tooltips with library compatibility. - Implement a default stand-alone fallback for environments without supported libraries.
17 lines
601 B
JavaScript
17 lines
601 B
JavaScript
export class BaseFormat {
|
|
/**
|
|
* Get formats the verses.
|
|
*
|
|
* @param {Object} data - The data containing verses and their details.
|
|
* @param {boolean} showBook - Whether to show book names.
|
|
* @param {boolean} showTrans - Whether to show translations.
|
|
* @param {boolean} showAbbr - Whether to show abbreviations.
|
|
* @param {boolean} showLang - Whether to show languages.
|
|
* @returns {string} The formatted verses.
|
|
* @abstract
|
|
*/
|
|
get(data, showBook, showTrans, showAbbr, showLang) {
|
|
throw new Error("The 'get' method must be implemented in BaseFormat subclass.");
|
|
}
|
|
}
|