Retrospring/app/javascript/retrospring/initializers/bootstrap.ts

15 lines
378 B
TypeScript
Raw Normal View History

import 'bootstrap';
import $ from 'jquery';
/**
* This module sets up Bootstraps JavaScript
*
* Inside of the exported function below, initialize Bootstrap
* modules that require explicit initilization, like tooltips
*/
export default function (): void {
$(document).ready(() => {
$('[data-toggle="tooltip"]').tooltip();
$('.dropdown-toggle').dropdown();
});
}