API Reference

A robust collection of JavaScript utilities, plugins, and event listeners.

In addition to it's core methods and components, Clique.UI provides a robust library of of prototype extensions, utility methods, and event listeners for greater control of DOM manipulation and layout rendering, all under the same API and namespace.

The default build of Clique.UI contains all event listeners and utilities, though not all are used by the core Clique.UI methods. Get started by downloading Clique.UI

Download Clique.UI


Requirements

Clique.UI is dependent on jQuery, and must be referenced after jQuery is called. It's recommended that at least version 2.1.1 of jQuery is used, as earlier versions may cause Clique.UI to break or cause performance issues.

For increased page-load time and performance, we recommend loading all Clique.UI JavaScript files and dependencies from the footer of the document:

Markup

<!DOCTYPE>
<html>
    <head>
        <title>Your Awesome Site</title>
        <link rel="stylesheet" href="css/clique.css">
    </head>
    <body>

    ...

    <script src="js/jquery.js"></script>
    <script src="js/clique.js"></script>

    </body>
</html>

Loading Components

If you want to include the additional Clique.UI components in your project, load the files after the main clique.js file.

Markup

<!DOCTYPE>
<html>
    <head>
        <title>Your Awesome Site</title>
        <link rel="stylesheet" href="css/clique.css">

        <!-- Component CSS files -->
        <link rel="stylesheet" href="css/clique/switch.css">
    </head>
    <body>

    ...

    <script src="js/jquery.js"></script>
    <script src="js/clique.js"></script>

    <!-- Component JS files -->
	<script src="js/clique/switch.js"></script>

    </body>
</html>