-
Notifications
You must be signed in to change notification settings - Fork 5
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
Showing
6 changed files
with
1,379 additions
and
31 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
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
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 |
---|---|---|
@@ -0,0 +1,123 @@ | ||
## Functions | ||
|
||
<dl> | ||
<dt><a href="#replace">replace()</a> ⇒ <code>function</code></dt> | ||
<dd><p>Replaces the content of an element with the HTML generated from the provided event.</p> | ||
</dd> | ||
<dt><a href="#replaceEl">replaceEl()</a> ⇒ <code>function</code></dt> | ||
<dd><p>Replaces the element with the new HTML content generated by the event.</p> | ||
</dd> | ||
<dt><a href="#appendEl">appendEl()</a> ⇒ <code>function</code></dt> | ||
<dd><p>Appends an element to the DOM.</p> | ||
</dd> | ||
<dt><a href="#prependEl">prependEl()</a> ⇒ <code>function</code></dt> | ||
<dd><p>Prepends an element to the DOM.</p> | ||
</dd> | ||
<dt><a href="#afterEl">afterEl()</a> ⇒ <code>function</code></dt> | ||
<dd><p>Inserts an element after the current element.</p> | ||
</dd> | ||
<dt><a href="#beforeEl">beforeEl()</a> ⇒ <code>function</code></dt> | ||
<dd><p>Inserts an element before the current element.</p> | ||
</dd> | ||
<dt><a href="#removeEl">removeEl()</a> ⇒ <code>function</code></dt> | ||
<dd><p>Removes the element from the DOM.</p> | ||
</dd> | ||
<dt><a href="#removeParentEl">removeParentEl(event)</a></dt> | ||
<dd><p>Removes the parent element of the specified element.</p> | ||
</dd> | ||
<dt><a href="#emit">emit(id, params, target)</a> ⇒ <code>function</code></dt> | ||
<dd><p>Emits an event with the specified ID, parameters, and target.</p> | ||
</dd> | ||
<dt><a href="#submit">submit(opts)</a> ⇒ <code>void</code></dt> | ||
<dd><p>Submits a form or emits an event to the server.</p> | ||
</dd> | ||
</dl> | ||
|
||
<a name="replace"></a> | ||
|
||
## replace() ⇒ <code>function</code> | ||
Replaces the content of an element with the HTML generated from the provided event. | ||
|
||
**Kind**: global function | ||
**Returns**: <code>function</code> - - A function that accepts an event and replaces the element's content. | ||
<a name="replaceEl"></a> | ||
|
||
## replaceEl() ⇒ <code>function</code> | ||
Replaces the element with the new HTML content generated by the event. | ||
|
||
**Kind**: global function | ||
**Returns**: <code>function</code> - - A function that accepts an event and replaces the element with the new HTML content. | ||
<a name="appendEl"></a> | ||
|
||
## appendEl() ⇒ <code>function</code> | ||
Appends an element to the DOM. | ||
|
||
**Kind**: global function | ||
**Returns**: <code>function</code> - - The event listener function. | ||
<a name="prependEl"></a> | ||
|
||
## prependEl() ⇒ <code>function</code> | ||
Prepends an element to the DOM. | ||
|
||
**Kind**: global function | ||
**Returns**: <code>function</code> - - The event listener function. | ||
<a name="afterEl"></a> | ||
|
||
## afterEl() ⇒ <code>function</code> | ||
Inserts an element after the current element. | ||
|
||
**Kind**: global function | ||
**Returns**: <code>function</code> - - A function that accepts an event and calls the `afterElement` function. | ||
<a name="beforeEl"></a> | ||
|
||
## beforeEl() ⇒ <code>function</code> | ||
Inserts an element before the current element. | ||
|
||
**Kind**: global function | ||
**Returns**: <code>function</code> - - The function that inserts an element before the specified element. | ||
<a name="removeEl"></a> | ||
|
||
## removeEl() ⇒ <code>function</code> | ||
Removes the element from the DOM. | ||
|
||
**Kind**: global function | ||
**Returns**: <code>function</code> - The event handler function that removes the element. | ||
<a name="removeParentEl"></a> | ||
|
||
## removeParentEl(event) | ||
Removes the parent element of the specified element. | ||
|
||
**Kind**: global function | ||
|
||
| Param | Type | Description | | ||
| --- | --- | --- | | ||
| event | <code>Event</code> | The event object. | | ||
|
||
<a name="emit"></a> | ||
|
||
## emit(id, params, target) ⇒ <code>function</code> | ||
Emits an event with the specified ID, parameters, and target. | ||
|
||
**Kind**: global function | ||
**Returns**: <code>function</code> - - A function that can be called to emit the event. | ||
|
||
| Param | Type | Description | | ||
| --- | --- | --- | | ||
| id | <code>string</code> | The ID of the event. | | ||
| params | <code>object</code> | The parameters to be passed with the event. | | ||
| target | <code>string</code> | The target of the event. | | ||
|
||
<a name="submit"></a> | ||
|
||
## submit(opts) ⇒ <code>void</code> | ||
Submits a form or emits an event to the server. | ||
|
||
**Kind**: global function | ||
|
||
| Param | Type | Description | | ||
| --- | --- | --- | | ||
| opts | <code>Object</code> | Options for the submission. | | ||
| opts.event | <code>string</code> | The event ID to be emitted. | | ||
| opts.params | <code>Object</code> | The parameters to be sent with the submission. | | ||
| opts.target | <code>string</code> | The target element for the response. | | ||
|
Oops, something went wrong.