ionic-team / ionic-team/ionic-framework

feat: Expose matchBreakpoint

オープン
#21,257 コメント 1 件 リアクション 6 件 担当者 0 名 GitHub で見る
package: core type: feature request
主要言語
TypeScript
スター
52.7k
フォーク
13.3k
平均マージ
1日 15時間
マージ済み PR(30日)
51

説明

# Feature Request

**Ionic version:**

[x] **5.1.0**

**Describe the Feature Request**

I'm new to Ionic, and AFAIK, there's no _clean_ way to access ionic breakpoints in js. We can hardcode something like `window.matchMedia("(min-width: someSMValue)").matches` but we have to maintain this value and make sure that our "sm" is the same "sm" used in ionic.

**Describe Preferred Solution**

I would be usefull if this file was in the public api: https://github.com/ionic-team/ionic/blob/master/core/src/utils/media.ts

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。