loader/src/js/elements/tooltip/UikitTooltip.js
Llewellyn van der Merwe d9f5a1aebc
Implement enhanced UI elements with library detection and fallback
- 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.
2023-11-20 16:29:47 +02:00

17 lines
351 B
JavaScript

import { BaseTooltip } from './BaseTooltip.js';
export class UikitTooltip extends BaseTooltip {
constructor(triggerElement) {
super(triggerElement);
}
load(content) {
try {
super.load(content);
UIkit.tooltip(this.triggerElement);
} catch (error) {
console.error('Error loading UikitTooltip:', error);
}
}
}