Skip to content
This repository was archived by the owner on Sep 8, 2020. It is now read-only.

Commit a714a0e

Browse files
committed
feat(handle): hiding handle by default
1 parent 232c612 commit a714a0e

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,13 @@ Default: `false`
100100

101101
Like `disableToggle` above but only removes the arrows on mobile devices (max-device-width: 480px).
102102

103+
### showHandle
104+
105+
Type: `Boolean`
106+
Default: `false`
107+
108+
Whether to show a handle in the middle of a splitbar. If toggle is enabled at the same time, the handle is shown between
109+
the two toggle buttons. The handle has the css class `.ui-splitbar-handle`.
103110

104111
## Child Attributes
105112

src/ui-layout.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,10 @@
132132
display: none;
133133
}
134134

135+
.no-handle .ui-splitbar-handle {
136+
display: none;
137+
}
138+
135139
@media only screen and (max-device-width: 480px) {
136140
.no-mobile-toggle .ui-splitbar-icon {
137141
display: none;

src/ui-layout.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ angular.module('ui.layout', [])
5252
if (opts.disableMobileToggle) {
5353
$element.addClass('no-mobile-toggle');
5454
}
55+
if (!opts.showHandle) {
56+
$element.addClass('no-handle');
57+
}
5558

5659
// Initial global size definition
5760
opts.sizes = opts.sizes || [];

0 commit comments

Comments
 (0)