document.addEventListener("DOMContentLoaded", () => {
new FancyGrid({
title: 'Rows\' Auto Height',
renderTo: 'container',
width: 500,
height: 400,
data: data,
theme: 'gray',
selModel: 'rows',
trackOver: true,
columns: [{
index: 'car',
title: 'Car',
sortable: true
}, {
index: 'info',
type: 'text',
width: 350,
resizable: true,
autoHeight: true,
title: 'Info'
}]
});
});
var data = [{
car: 'Kia Sportage',
info: 'The Kia Sportage is a compact crossover SUV (compact SUV until 2005) built by the South Korean manufacturer Kia since 1993.'
}, {
car: 'Kia Sorento',
info: 'The Kia Sorento is a mid-size crossover SUV (compact SUV until 2009) produced since 2002 by South Korean manufacturer Kia Motors.'
}, {
car: 'Kia Rio',
info: 'The Kia Rio is a subcompact car produced by the South Korean manufacturer Kia since August 2000 and now in its fourth generation.<br> Body styles have included a three and five-door hatchback and four-door sedan, equipped with inline-four gasoline and diesel engines, and front-wheel drive.<br>The Rio replaced the first-generation Pride—a rebadged version of the Ford Festiva—and the Avella, a subcompact sold as a Ford in some markets.<br> A second generation was introduced in 2005 in Europe and 2006 in North America, sharing its platform with the Hyundai Accent, a subcompact manufactured by its sister Hyundai Motor Company in South Korea.'
}, {
car: 'Kia Soul',
info: 'The Kia Soul is a front-engine, front-wheel-drive, five-door subcompact crossover SUC (Mini MPV) manufactured and marketed worldwide by Kia and now in its second generation.<br>Designed at Kia\'s design center in California, the Soul debuted at the 2008 Paris Motor Show and is manufactured in South Korea.<br> Since 2014, Kia has marketed an electric variant as the Soul EV in North and Central America as well as Europe.'
}];
Please Whitelist JSFiddle in your content blocker.
Help keep JSFiddle free for always by one of two ways:
Whitelist JSFiddle in your content blocker (two clicks)
Go PRO and get access to additional PRO features →
Join the 4+ million users, and keep the JSFiddle dream alive.
Ad-free
All ads in the editor and listing pages are turned completely off.
Fiddle Pages
Your fiddles accessible under a custom domain and a vanity path - the simplest hosting for your personal project.
Use pre-released features
You get to try and use features (like the Palette Color Generator) months before everyone else.
Fiddle collections
Sort and categorize your Fiddles into multiple collections.
Private collections and fiddles
You can make as many Private Fiddles, and Private Collections as you wish!
Get Fiddle Pages with PRO
Your fiddles accessible under a custom domain and a vanity path - the simplest hosting for your personal project.