هل تعلم؟dyk.si

اسحب للتحديث Pull to Refresh

تسحب القائمة إلى الأسفل من بدايتها، فتظهر دائرة تدور، ويتحدّث المحتوى.

overscroll + touch events (custom)

متى تستخدمه

للقوائم التي تتحدّث كثيراً: الرسائل، أو الطلبات.

خطأ شائع

لا تستخدمه إذا كان المحتوى يتحدّث من تلقاء نفسه.

إمكانية الوصول

Also offer a visible refresh button for users who can’t swipe.

اسمه في الكود

HTML/CSSoverscroll + touch events (custom)
Reactreact-pull-to-refresh
Jetpack ComposePullToRefreshBox
SwiftUI.refreshable { }

برومبت جاهز لوكيل البرمجة

Add a Pull to Refresh to this screen. What it is: Pull a list down from the top, a spinner appears, and the content refreshes. Implement with: overscroll + touch events (custom) (HTML/CSS). Accessibility: Also offer a visible refresh button for users who can’t swipe. When to use it: For frequently updated lists: messages, orders. Avoid: Unnecessary if content updates live. Reuse the project's existing design tokens, spacing and component conventions.

أو ركّب صفحة كاملة من هذا العنصر وغيره →

البرومبت بالإنجليزية لأنها الأدق مع Claude Code وأمثاله.