cluedin-widget
Version:
This project contains all the pages needed for browsing entities and searching them. The aim is to replace the CluedIn.Webapp project with this one when all the pages ( including the Admin page ) will be ported to REACT.
15 lines (11 loc) • 437 B
JavaScript
var layout = require( '../core/layout/index' );
var widgetToTests = [ { name: '3', size: 12 }, { name: '1', size: 4 }, { name: '2', size: 6 }, {
name: '3',
size: 4
}, { name: '1', size: 4 }, { name: '1', size: 6 }, { name: '1', size: 4 } ];
var result = layout.findBestLayout( widgetToTests );
console.log( result.rows );
result.rows.forEach( function( row ) {
console.log( row.widgets );
console.log( '------' )
} );