ionic-team / ionic-team/ionic-docs

Platform : condition for device types

Aperta
#948 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
content
Lingua principale
MDX
Stelle
621
Fork
3.2k
Merge medio
1g 2h
PR unite (30g)
86

Descrizione

**URL**
https://ionicframework.com/docs/utilities/platform

**What is missing or inaccurate about the content on this page?**
About the method is(platformName: Platforms), it would be great to know which conditions make it answer true for "mobile" "phablet" and "tablet".
I always thought a phablet would always return true for both "mobile" and "tablet" but I've done tests with a Pixel 3 on Android Q with display set to small (high resolution) and it returns true for both "mobile" and "tablet" but false for "phablet".
It is very hard to tell if it's a bug or an undocumented feature.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.