JavaScript Library For Optimal Blocks Layout | pkmx

The Javascript for Optimal Blocks Layout allows the arrangement of elements inside the container by filling the empty areas. In the background, a dynamic height matrix is used, searches, and dedicates the appropriate fields.

grid template columns, css grid auto fit, grid template areas, grid auto flow, grid template rows, grid auto columns, css grid template columns

A Vue3 Block Organization Tree View Component Library

How to make use of it:

1. Download the Javascript file and put it at the end of the document.

<script src="pkmx.js"></script>

2. Let’s say that you have a set of items that will be arranged in the network layout.

<div id="example">
  <div class="item">Item 1</div>
  <div class="item">Item 2</div>
  <div class="item">Item 3</div>
  <div class="item">Item 4</div>
  <div class="item">Item 5</div>

3. Create the auxiliary program and identify the specifics of the container and elements.

pkmx('#sample', '#sample .item');

4. Customize network layout by passing the following options object as a third parameter to the “PKMX”.

  cellWidth: number,
  cellHeight: number,
  cellHorizontalAlign: left |center | right
  cellVerticalAlign: top | middle | bottom
  optimize: larger-first |
  liveAppend: boolean
  manageContainerHeight: boolean

compact cascading grid layout, js library for optimal blocks layout Plugin/Github

See Demo And Download

Official Website(xantorohara): Click Here

This superior jQuery/javascript plugin is developed by xantorohara. For extra advanced usage, please go to the official website.

Related Posts


[Animation] Bootstrap Multi-Level Responsive Dropdown Menu

Bootstrap-based multi-level dropdown navigation menu with cool animations. The dropdown on Hover is a jQuery plugin used to create Bootstrap multi-level scroll-triggered dropdown menus with CSS3 animations…


HTML 5 File Input Optimized for Bootstrap 4.x./3.x with File Preview | Bootstrap Fileinput

bootstrap-fileinput is an improved HTML 5 file input  Bootstrap 5.x, 4.x and 3.x with file preview for different files, provides multiple selections, resumable section uploads, and more….


CSS Layout Components Horizontal/Vertical Stack | HStack and VStack

HStack and VStack in CSS – CSS layout components that (basically) stack anything horizontally and vertically. A pure CSS library that makes it easy to stack elements…


Interactive Data Table Generator with JS/jQuery and JSON | Tabulator

Tabulator allows you to create interactive tables in seconds from any HTML Table, JavaScript array, AJAX data source, or JSON format data. Just include the library in your…


Simple Alert, Confirm, Prompt Popup Using Vanilla JavaScript Library | attention.js

JavaScript provides various built-in functionality to display popup messages for different purposes. Attention JS is a vanillaJS plugin used to create a custom alert, confirm, or Prompt…


Lightweight Bootstrap 4 Toast Notification Plugin | BS4 Advanced Toast

A lightweight Bootstrap 4 Toast Notification plugin integrated with JS/jQuery. bs4-toast.js is a JavaScript library that enhances the native Bootstrap toast component with icons, buttons, callbacks, and…

Leave a Reply

Your email address will not be published. Required fields are marked *