All Projects → luncheon → flex-splitter-directive

luncheon / flex-splitter-directive

Licence: WTFPL license
Dead simple panes splitter control based on flexbox. JS + CSS < 1kB (gzipped) with no dependencies.

Programming Languages

HTML
75241 projects
typescript
32286 projects
CSS
56736 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to flex-splitter-directive

curved-menu
VanillaJS fully configurable curved menu (circular navigation)
Stars: ✭ 30 (+57.89%)
Mutual labels:  vanilla-js
svg-pan-zoom-container
A vanilla-js module for adding zoom-on-wheel and pan-on-drag behavior to inline SVG elements.
Stars: ✭ 31 (+63.16%)
Mutual labels:  vanilla-js
reinvented-color-wheel
A vanilla-js touch-friendly HSV color picker inspired by Farbtastic Color Picker.
Stars: ✭ 43 (+126.32%)
Mutual labels:  vanilla-js
coding challenge-14
Understanding JavaScript and coding without the help of a library or tool
Stars: ✭ 22 (+15.79%)
Mutual labels:  vanilla-js
clocklet
An opinionated clock-style vanilla-js timepicker.
Stars: ✭ 31 (+63.16%)
Mutual labels:  vanilla-js
eslint-config-yara
Yara Digital Labs JavaScript Style Guide
Stars: ✭ 12 (-36.84%)
Mutual labels:  vanilla-js
js-plugin-starter-kit
VanillaJS (pure JavaScript) plugin starter with Webpack 4 and Babel 7.
Stars: ✭ 100 (+426.32%)
Mutual labels:  vanilla-js
lego
🚀 Web-components made lightweight & Future-Proof.
Stars: ✭ 69 (+263.16%)
Mutual labels:  vanilla-js
tensorflowjs-remove-background
Remove Background from the picture using WebAssembly & TensorFlow.js
Stars: ✭ 79 (+315.79%)
Mutual labels:  vanilla-js
scrolly.js
Scrolly: fast vanilla JS scrollbar plugin with React.js Component & jQuery/Zepto/jBone plugin.
Stars: ✭ 18 (-5.26%)
Mutual labels:  vanilla-js
qis
Dynamic image server for web and print
Stars: ✭ 85 (+347.37%)
Mutual labels:  vanilla-js
GithubSquare
Explore the most starred projects , trending developers , popular repositories of any date and face off Github Profiles of your choice.
Stars: ✭ 37 (+94.74%)
Mutual labels:  vanilla-js
allotment
A React component for resizable split views
Stars: ✭ 359 (+1789.47%)
Mutual labels:  splitter
js-study-lv1
단국대학교 자바스크립트 스터디 레벨 1 과정을 위한 저장소
Stars: ✭ 18 (-5.26%)
Mutual labels:  vanilla-js
handy-collapse
A pure Javascript module for accordion/collapse UI without jQuery
Stars: ✭ 23 (+21.05%)
Mutual labels:  vanilla-js
sinling
A collection of NLP tools for Sinhalese (සිංහල).
Stars: ✭ 38 (+100%)
Mutual labels:  splitter
eins-modal
Simple to use modal / alert / dialog / popup. Created with pure JS. No javascript knowledge required! Works on every browser and device! IE9
Stars: ✭ 30 (+57.89%)
Mutual labels:  vanilla-js
paginas-acessiveis
Exemplo de páginas HTML acessíveis, construídas em HTML, CSS e JS puro, demostrando vários componentes interativos construídos de forma inclusiva.
Stars: ✭ 63 (+231.58%)
Mutual labels:  vanilla-js
mm-components
Music Markups components
Stars: ✭ 50 (+163.16%)
Mutual labels:  vanilla-js
event-driven-web-components-realworld-example-app
Exemplary real world application built with Vanilla JS Web Components in an Event Driven Architecture
Stars: ✭ 55 (+189.47%)
Mutual labels:  vanilla-js

flex-splitter-directive

Dead simple panes splitter control based on flexbox.

Demo

  • Declarative.
    Just add an attribute to the DOM element. Don't need to write any JavaScript.
  • Lightweight.
    JS + CSS ~ 1.2kB (gzipped) with no dependencies.

Installation

npm (with a module bundler)

$ npm i flex-splitter-directive
import "flex-splitter-directive"
import "flex-splitter-directive/styles.min.css"

CDN (jsDelivr)

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/styles.min.css">
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script>

Download Directly

Usage

  1. Load CSS and JS.
  2. Set data-flex-splitter-horizontal (or data-flex-splitter-vertical for vertical) attribute to the parent element of the panes.
    • Optionally, specify the keyboard-movement option, as in data-flex-splitter-horizontal="keyboard-movement:10".
  3. Insert <div role="separator" tabindex="1"></div> between each pane.
  4. Set the following styles for each pane as required:
    • width / height for the initial size.
    • min-width / min-height for the minimum size.
    • max-width / max-height for the maximum size.
    • flex: auto for filling space.

License

WTFPL

Other vanilla-js panes splitters

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].