Skip to content
Code-Schnipsel Gruppen Projekte
Commit cfc6a163 erstellt von Henning Leutz's avatar Henning Leutz :martial_arts_uniform:
Dateien durchsuchen

Slideout menu -> option touch

Übergeordneter 6f3c93a9
Keine zugehörigen Branchen gefunden
Keine zugehörigen Tags gefunden
Keine zugehörigen Merge Requests gefunden
......@@ -33,7 +33,8 @@ define('package/quiqqer/menu/bin/SlideOut', [
right : false,
'data-show-button-on-desktop': true,
'menu-width' : 256,
'menu-button' : true
'menu-button' : true,
'touch' : false
},
Binds: [
......@@ -119,13 +120,27 @@ define('package/quiqqer/menu/bin/SlideOut', [
}
if (Elm.get('data-qui-options-menu-width')) {
this.setAttribute('menu-width', Elm.get('data-qui-options-menu-width').toInt());
this.setAttribute(
'menu-width',
Elm.get('data-qui-options-menu-width').toInt()
);
}
if (Elm.get('data-qui-options-menu-button')) {
this.setAttribute('menu-button', Elm.get('data-qui-options-menu-button').toInt());
this.setAttribute(
'menu-button',
Elm.get('data-qui-options-menu-button').toInt()
);
}
if (Elm.get('data-qui-options-touch')) {
this.setAttribute(
'touch',
Elm.get('data-qui-options-touch').toInt() ? true : false
);
}
// attributes
if (this.getAttribute('top')) {
this.MenuButton.setStyle('top', this.getAttribute('top'));
......@@ -166,7 +181,8 @@ define('package/quiqqer/menu/bin/SlideOut', [
panel : BodyWrapper,
menu : Elm,
padding : this.getAttribute('menu-width'),
tolerance: 70
tolerance: 70,
touch : this.getAttribute('touch')
});
this.Slideout.on('beforeopen', function () {
......
0% Lade oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren