cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

Code Indentation


Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

              <h1>Users List</h1>

<table data-bind="ojComponent: {component: 'ojTable', 
            data: dataSource,
            columns: [
                {headerText: 'Username', field: 'username'},
                {headerText: 'Name', field: 'name'},
                {headerText: 'Company Name', field: 'company'},
                {headerText: 'Email', field: 'email'},
                {headerText: 'Phone', field: 'phone'}

              @import url('//rawgit.com/oracle/oraclejet/3.0.0/dist/css/alta/oj-alta-min.css');

], function(ko, oj, $) {
  'use strict';

  var ViewModel = function() {
    var self = this;

    self.data = ko.observableArray();
    then(function(users) {
      $.each(users, function() {
          username: this.username,
          name: this.name,
          company: this.company.name,
          email: this.email,
          phone: this.phone
    self.dataSource = new oj.ArrayTableDataSource(
      self.data, {
        idAttribute: 'username'


  ko.applyBindings(new ViewModel());

//RequireJS configs (usually these come first in main.js, but they don't have to)
  // Path mappings for the logical module names
  paths: {
    'knockout': '//cdnjs.cloudflare.com/ajax/libs/knockout/3.4.0/knockout-min',
    'jquery': '//cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min',
    "jqueryui-amd": "//rawgit.com/jquery/jquery-ui/1.12.0/ui",

    "promise": "//cdnjs.cloudflare.com/ajax/libs/es6-promise/3.2.1/es6-promise.min",
    "hammerjs": "//cdnjs.cloudflare.com/ajax/libs/hammer.js/2.0.8/hammer.min",
    "ojdnd": "//rawgit.com/oracle/oraclejet/3.0.0/dist/js/libs/dnd-polyfill/dnd-polyfill-1.0.0.min",
    "ojs": "//rawgit.com/oracle/oraclejet/3.0.0/dist/js/libs/oj/debug/",
    "ojL10n": "//rawgit.com/oracle/oraclejet/3.0.0/dist/js/libs/oj/debug/ojL10n",
    "ojtranslations": "//rawgit.com/oracle/oraclejet/3.0.0/dist/js/libs/oj/resources",
    "text": "//cdnjs.cloudflare.com/ajax/libs/require-text/2.0.12/text.min",
    "signals": "//cdnjs.cloudflare.com/ajax/libs/js-signals/1.0.0/js-signals.min",
        'customElements': '//rawgit.com/webcomponents/webcomponentsjs/v0.7.24/CustomElements',
    "proj4": "//cdnjs.cloudflare.com/ajax/libs/proj4js/2.4.3/proj4",
    "css": "//cdnjs.cloudflare.com/ajax/libs/require-css/0.1.10/css.min"
  // Shim configurations for modules that do not expose AMD
  shim: {
    'jquery': {
      exports: ['jQuery', '$']


Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.


Loading ..................