Skip to content

Commit af8ae33

Browse files
committed
mobile doc cleanup
1 parent 2853606 commit af8ae33

File tree

4 files changed

+1
-9
lines changed

4 files changed

+1
-9
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ This option is now the default:
282282

283283
```js
284284
let 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
};
287287
GridStack.init(options);
288288
```

demo/angular-ngFor.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff 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-
/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(
64-
navigator.userAgent
65-
),
6662
margin: 5,
6763
float: true,
6864
});

doc/README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff 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

src/types.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)