Namespaces
Methods
(static) add(arr, index)
Remove an item from an array from a specific index.
Parameters:
Name | Type | Description |
---|---|---|
arr |
Array | Array of items |
index |
number | Index (0-baded) to add a new object. |
(static) add(arr, index)
Add an object to an array to a specific index.
Parameters:
Name | Type | Description |
---|---|---|
arr |
Array | Array of items |
index |
number | Index (0-baded) to add a new object. |
(static) add(arr, index)
Move Down an item in an array.
Parameters:
Name | Type | Description |
---|---|---|
arr |
Array | Array of items |
index |
number | Index (0-baded) to add a new object. |
(static) add(arr, index)
Move Up an item in an array.
Parameters:
Name | Type | Description |
---|---|---|
arr |
Array | Array of items |
index |
number | Index (0-baded) to add a new object. |
(static) dropDownToggle()
Allow you to run Bootstrap DropDownList without Bootstrap.js Library. No Dependencies.
- Source:
- See:
(static) init()
Init behaviors on each pages.
(static) smartTargetInjection()
Add `target="_blank"` on external link without `target` explicitly setted.
Example
<!-- Apply for this Cases -->
<a href="http://www.externalsite.com/"></a>
<a href="./media/images/image.jpg"></a>
<a href="./media/upload/doucument.pdf"></a>
<!-- Not apply for this Cases -->
<a href="page-on-this-site.html"></a>
<a href="http://www.currentsite.com/"></a>
<a href="http://www.externalsite.com/" target="_self"></a>
<a href="page-on-this-site.html" target="_blank"></a>