File tree Expand file tree Collapse file tree 4 files changed +1
-9
lines changed
Expand file tree Collapse file tree 4 files changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -282,7 +282,7 @@ This option is now the default:
282282
283283``` js
284284let options = {
285- alwaysShowResizeHandle: ' mobile' // which defaults to /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)
285+ alwaysShowResizeHandle: ' mobile' // true if we're on mobile devices
286286};
287287GridStack .init (options);
288288```
Original file line number Diff line number Diff line change @@ -59,10 +59,6 @@ export class AngularNgForTestComponent implements AfterViewInit {
5959 // wait until after DOM is ready to init gridstack - can't be ngOnInit() as angular ngFor needs to run first!
6060 public ngAfterViewInit ( ) {
6161 this . grid = GridStack . init ( {
62- alwaysShowResizeHandle :
63- / A n d r o i d | w e b O S | i P h o n e | i P a d | i P o d | B l a c k B e r r y | I E M o b i l e | O p e r a M i n i / i. test (
64- navigator . userAgent
65- ) ,
6662 margin : 5 ,
6763 float : true ,
6864 } ) ;
Original file line number Diff line number Diff line change @@ -74,8 +74,6 @@ gridstack.js API
7474 * ` false ` the resizing handles are only shown while hovering over a widget
7575 * ` true ` the resizing handles are always shown
7676 * ` 'mobile' ` if running on a mobile device, default to ` true ` (since there is no hovering per say), else ` false ` .
77- this uses this condition on browser agent check:
78- ` alwaysShowResizeHandle: /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test( navigator.userAgent ) `
7977 See [ mobile] ( http://gridstack.github.io/gridstack.js/demo/mobile.html )
8078
8179
Original file line number Diff line number Diff line change @@ -84,8 +84,6 @@ export interface GridStackOptions {
8484 * `false` the resizing handles are only shown while hovering over a widget
8585 * `true` the resizing handles are always shown
8686 * 'mobile' if running on a mobile device, default to `true` (since there is no hovering per say), else `false`.
87- * this uses this condition on browser agent check:
88- `alwaysShowResizeHandle: /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test( navigator.userAgent )`
8987 See [example](http://gridstack.github.io/gridstack.js/demo/mobile.html) */
9088 alwaysShowResizeHandle ?: true | false | 'mobile' ;
9189
You can’t perform that action at this time.
0 commit comments