Docs

Everything You Need to Know

DOM

Use

If you know how to use jQuery, you know how to use ChocolateChip-UI's DOM engine. We built it to replicate the functionality of jQuery.

$(function() {
  $('#element').css('color', 'red').addClass('important');
  $('li').on('tap', function(e) {
    e.stopPropagation();
    $(this).append('... some text');
  });
});

Deferred Objects

ChocolateChip-UI does not implement jQuery's Deferred object. Instead it uses ES6 promises. It provides a polyfill for older browsers that do not support native promises. Please see our documentation on promises to learn more about them.

Ajax

ChocolateChip-UI does not implement jQuery's Ajax. Instead it uses the Fetch API, which is a modern replacement for remote server access. It uses ES6 promises by default. Please read our documentation on Fetch to learn more about using it.

For more information about specific DOM methods, check out the API documentation.