diff --git a/bootstrap/bootstrap-tests.ts b/bootstrap/bootstrap-tests.ts index 71698101f..fa4409fe3 100644 --- a/bootstrap/bootstrap-tests.ts +++ b/bootstrap/bootstrap-tests.ts @@ -17,6 +17,7 @@ $('#myModal').modal('toggle'); $('.dropdown-toggle').dropdown(); $('#navbar').scrollspy(); +$('body').scrollspy({ target: '#navbar-example' }); $('#element').tooltip('show'); @@ -42,4 +43,4 @@ $('.typeahead').typeahead({ highlighter: item => "" }); -$('#navbar').affix(); \ No newline at end of file +$('#navbar').affix(); diff --git a/bootstrap/bootstrap.d.ts b/bootstrap/bootstrap.d.ts index 3545eb310..491eb3045 100644 --- a/bootstrap/bootstrap.d.ts +++ b/bootstrap/bootstrap.d.ts @@ -22,6 +22,7 @@ interface ModalOptionsBackdropString { interface ScrollSpyOptions { offset?: number; + target?: string; } interface TooltipOptions {