-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
70c457e
commit dbb51a3
Showing
2 changed files
with
7 additions
and
4 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,10 +17,10 @@ The quickest way to get started with Halfmoon is by using the CDN to include the | |
|
||
```html | ||
<!-- Halfmoon CSS --> | ||
<link href="https://cdn.jsdelivr.net/gh/halfmoonui/[email protected].3/css/halfmoon.min.css" rel="stylesheet" /> | ||
<link href="https://cdn.jsdelivr.net/gh/halfmoonui/[email protected].4/css/halfmoon.min.css" rel="stylesheet" /> | ||
|
||
<!-- Halfmoon JS --> | ||
<script src="https://cdn.jsdelivr.net/gh/halfmoonui/[email protected].3/js/halfmoon.min.js"></script> | ||
<script src="https://cdn.jsdelivr.net/gh/halfmoonui/[email protected].4/js/halfmoon.min.js"></script> | ||
``` | ||
|
||
## Using npm | ||
|
@@ -39,14 +39,14 @@ require("halfmoon/css/halfmoon.min.css"); | |
var halfmoon = require("halfmoon"); | ||
``` | ||
|
||
Please note that manual initialization is required for some components, that is, after the DOM is loaded, the following method needs to be called: | ||
Please note that this method requires manual initialization, that is, after the DOM is loaded, the following method needs to be called: | ||
|
||
```javascript | ||
// Call this method after the DOM has been loaded | ||
halfmoon.onDOMContentLoaded(); | ||
``` | ||
|
||
This initializes all of the components that require JavaScript, such as dropdowns, custom file inputs, shortcuts, etc. | ||
This initializes all of the components that require JavaScript, such as dropdowns,, custom file inputs, shortcuts, etc. | ||
|
||
In this way, Halfmoon can be used with frameworks that use the virtual DOM, such as React and Vue. For instance, in the case of Vue, the `halfmoon.onDOMContentLoaded()` method would be called inside the `mounted()` hook of your component. | ||
|
||
|
This file contains 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