Created
July 28, 2019 01:02
-
-
Save shnam7/27bef6f6f1a180b9a00b4f26db0dcb39 to your computer and use it in GitHub Desktop.
Using jQuery plugin in Typescript
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // Example using jQuery Sidebar | |
| // https://github.com/jillix/jQuery-sidebar | |
| // <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-sidebar/3.3.2/jquery.sidebar.min.js"></script> | |
| // | |
| declare global { | |
| interface JQuery { | |
| sidebar(options?: any): JQuery; | |
| } | |
| } | |
| $('#site-offcanvas').sidebar({side: 'right'}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment