VOOZH about

URL: https://quasar.dev/vue-components/splitter/

⇱ QSplitter | Quasar Framework


assignment_late
Why donate
travel_explore
API Explorer
build
Quasar CLI (with Vite)
Upgrade Guide
Creating a New Project
The /quasar.config File
Convert q/app-webpack Project
Browser Compatibility
TypeScript Support
Directory Structure
Commands List
CSS Preprocessors
Page Routing with VueRouter
Lazy Loading - Code Splitting
Handling Assets
Boot Files
Prefetch Feature
API Proxying
Handling Vite
Handling import.meta.env
State Management with Pinia
Lint and Format Code
Testing & Auditing
Developing Mobile Apps
Ajax Requests
Opening Dev Server To Public
build
Quasar CLI (with Webpack)
QSplitter

The QSplitter component allow containers to be split vertically and/or horizontally through a draggable separator bar.

Loading QSplitter API...

Usage

WARNING

The use of the before and after slots is required.

Click and drag on the splitter separator bar to see results.

Basic

Basic


Horizontal

Horizontal


Custom dragging limits

Custom dragging limits (50-100)


Model units

By default, the CSS unit used is ‘%’ (percentage). But you can also use ‘px’ (pixels), as in the example below.

Model in pixels


Reverse model

By default, the model is connected to the before slot size. But you can reverse that and make it connect to the after slot, as in the example below. This feature turns out especially useful if your unit is set to pixels and you want to control the after slot.

Reverse model


Adding content to separator

TIP

If you use images as content for the separator slot, you might want to add draggable="false" to them, otherwise the native browser behavior might interfere in a negative way.

Adding to separator


Dark design

On a dark background with customized separator


Embedded

A QSplitter can be embedded in another QSplitter’s before and/or after slots, like shown in example below.

Embedded


Fun examples

Image Fun


Reactive Images



Caught a mistake?Edit this page in browser
1. Introduction
2. QSplitter API
3. Usage
3.1. Basic
3.2. Horizontal
3.3. Custom dragging limits
3.4. Model units
3.5. Reverse model
3.6. Adding content to separator
3.7. Dark design
3.8. Embedded
3.9. Fun examples
Copyright © 2015-present PULSARDEV SRL, Razvan Stoenescu