Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejavascript
pjs.defineDisplay("display.json");  // assume display.json defines mygrid with fields named "product" and "description"
 
display.mygrid.replaceRecords([
  { product: 1, description: "ITEM ONE" },
  { product: 2, description: "ITEM TWO" },
  { product: 3, description: "ITEM THREE" },
  { product: 4, description: "ITEM FOUR" }
]);
HTML
<div style=""position:relative;height:0;padding-bottom:24.25%"><iframe width="640" height="360" src="https://www.youtube.com/embed/xRxtYuMvYhk" frameborder="0" allowfullscreen></iframe></div>