Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Behavior

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.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <div class="container-fluid">
  <pre class="h2 bg-info">
Some heading text 1...
Some heading text 2...
Some heading text 3...
Some heading text 4...
Some heading text 5...
Some heading text 6...
Some heading text 7...
Some heading text 8...
Some heading text 9...
Some heading text 10...
</pre>
  <table id="tblAppendGrid1"></table>
  <h1>Another heading text...</h1>
  <div class="row">
    <div class="col-6">
      <table id="tblAppendGrid2"></table>
    </div>
    <div class="col-6">
      <table id="tblAppendGrid3"></table>
    </div>
  </div>
  <pre class="h2 bg-warning">
Extra content 1...
Extra content 2...
Extra content 3...
Extra content 4...
Extra content 5...
Extra content 6...
Extra content 7...
Extra content 8...
Extra content 9...
Extra content 10...
Extra content 11...
Extra content 12...
Extra content 13...
Extra content 14...
Extra content 15...
Extra content 16...
Extra content 17...
Extra content 18...
Extra content 19...
Extra content 20...
</pre>
</div>
              
            
!

CSS

              
                
              
            
!

JS

              
                // Prepare common parameters for grids
var commonParams = {
  uiFramework: "bootstrap4",
  uiParams: { sizing: "small" },
  iconFramework: "fontawesome5",
  columns: [
    {
      name: "col1",
      display: "Column 1",
      ctrlClass: "w-100"
    },
    {
      name: "col2",
      display: "Column 2",
      ctrlClass: "w-100"
    },
    {
      name: "col3",
      display: "Column 3",
      ctrlClass: "w-100"
    }
  ]
};

// Craete grid 1 to 3
var myAppendGrid1 = new AppendGrid(
  Object.assign(
    {
      element: "tblAppendGrid1",
      initRows: 30
    },
    commonParams
  )
);
var myAppendGrid2 = new AppendGrid(
  Object.assign(
    {
      element: "tblAppendGrid2",
      hideButtons: { moveUp: true, moveDown: true },
      initRows: 20
    },
    commonParams
  )
);
var myAppendGrid3 = new AppendGrid(
  Object.assign(
    {
      element: "tblAppendGrid3",
      hideButtons: { moveUp: true, moveDown: true },
      initRows: 10
    },
    commonParams
  )
);

// Fix header
$("#tblAppendGrid1,#tblAppendGrid2,#tblAppendGrid3").floatThead();

              
            
!
999px

Console