Namespace: ws

munchkin~ ws

Container for all static global function.
Source:

Namespaces

ui

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.
Source:

(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.
Source:

(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.
Source:

(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.
Source:

(static) dropDownToggle()

Allow you to run Bootstrap DropDownList without Bootstrap.js Library. No Dependencies.
Source:
See:

(static) init()

Init behaviors on each pages.
Source:

(static) smartTargetInjection()

Add `target="_blank"` on external link without `target` explicitly setted.
Source:
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>