document.addEventListener("DOMContentLoaded", function() { 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.' }];
<script src="https://cdn.fancygrid.com/fancy.min.js"></script> <div id="container"></div>