Skillpedia
المواقع والواجهات (frontend)29k · #9837

table-features

ما الذي تفعله

توضح هذه المهارة كيف تفعّل ميزات الجدول وتصلحها عندما لا تعمل كما هو متوقع. وهي موجهة للمطورين الذين يريدون الفرز أو التصفية أو ترقيم الصفحات في جدول مبني بالمكتبة.

متى تستخدمها

  • ✓عندما تحتاج إلى إضافة فرز أو تصفية أو ترقيم صفحات أو اختيار إلى جدول TanStack.
  • ✓عندما تبدو ميزة مثل الفرز بلا أثر، وتحتاج إلى فحص تسجيلها.
  • ✓عندما تحتاج إلى معرفة الميزة التي يتطلبها نموذج صفوف أو دالة فرز.

رابط المهارة

https://github.com/TanStack/table/blob/main/packages/table-core/skills/table-features/SKILL.md

انسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.

طريقة الاستخدام

أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.

رسالة جاهزة للصق

استخدم هذه المهارة لمساعدتي: https://github.com/TanStack/table/blob/main/packages/table-core/skills/table-features/SKILL.md اقرأ ملف SKILL.md في هذا الرابط ونفّذ تعليماته لمهمتي.
تريد أن يجد الذكاء الاصطناعي مهارات مثل هذه بنفسه؟ثبّت خادم Skillpedia MCP المجاني: سطر واحد، ويبحث في 15,000+ مهارة قبل كل مهمة.ثبّته في دقيقة واحدة →

مثال على ما تطلبه من الذكاء الاصطناعي

“أضفت الفرز إلى جدول TanStack الخاص بي، لكن النقر على العناوين لا يفعل شيئًا. كيف أصلح ذلك؟”

5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.

كيف تعمل

تبيّن كيف تسجّل كل ميزة ونموذج صفوفها في قائمة ميزات الجدول، لأن الجدول يحصل فقط على السلوك الذي سجّله، وتشرح المتطلبات السابقة لكل ميزة.

المحتوى التقني (ملف SKILL.md الأصلي)

النص الأصلي من المؤلف، مباشرة من GitHub.

Feature architecture

Read core first for the headless model and stable inputs.

Register the behavior the table uses

<!-- skill-snippet:check -->
import {
  createSortedRowModel,
  rowSortingFeature,
  sortFn_alphanumeric,
  tableFeatures,
} from '@tanstack/table-core'

export const features = tableFeatures({
  rowSortingFeature,
  sortedRowModel: createSortedRowModel(),
  sortFns: { alphanumeric: sortFn_alphanumeric },
})

Pass the stable features object to the installed adapter constructor. The concrete registry determines optional APIs, options, state slices, and their types. The core row model is automatic; a custom core model uses coreRowModel.

Registration rules

  • Register each prerequisite feature before its dependent slot in the same tableFeatures call. A processing factory alone cannot install that feature's APIs or state.
  • Row-model factories use create*RowModel() feature slots. Their names and prerequisites are in the feature reference. They take no function-registry arguments.
  • filterFns, sortFns, and aggregationFns are feature slots, not table options. They require columnFilteringFeature, rowSortingFeature, and rowAggregationFeature, respectively.
  • Import individual built-ins such as sortFn_alphanumeric and register their conventional keys. Those keys become typed string names; 'auto' can resolve only registered functions. Pass a function directly when a column needs no named registry entry. Full registry exports bundle every built-in.
  • columnResizingFeature requires columnSizingFeature; globalFilteringFeature requires columnFilteringFeature. Check installed FeatureSlotPrereqs for other dependencies.
  • Use explicit features for normal construction. stockFeatures is a deliberate all-features convenience or temporary migration aid, with the corresponding bundle cost.

A missing API can mean missing registration. Check the concrete feature object before casting, recreating an API, or assuming v9 removed it.

Select references by the requested change

Read only references needed for the requested behavior and its dependencies, including features being added. An unrelated feature already registered on the table does not make its reference necessary.

Task involves Read
Manual modes, server data, mixed row-processing stages, or dataset scope Client/server ownership
Totals, multiple aggregations, grouped aggregate values, or custom aggregate definitions Aggregation
Facet option counts, numeric ranges, or incomplete server facets Column faceting
Per-column filters, filter functions, metadata, or nested-row filtering Column filtering
Group rows, placeholders, or grouping with expansion/pagination Grouping
Drag ordering or leaf-column order differing from state Column ordering
Sticky column regions, logical start/end, or pinning gaps Column pinning
Drag resize handles, gesture events, or resize performance Column resizing
Numeric widths, min/max limits, or model/CSS size mismatch Column sizing
Hidden columns, visibility-aware rendering, or hiding controls Column visibility
A search across columns or global-filter eligibility Global filtering
Hierarchical subrows, detail panels, or expansion/page interaction Expanding
Page slicing, counts, navigation, or page-index resets
الأسئلة الشائعة

لماذا لا تعمل الميزة حتى بعد كتابة كودها؟

تقول المهارة إن الميزة يجب أن تُسجَّل في قائمة ميزات الجدول، وبعض الميزات تحتاج إلى تسجيل ميزة أخرى أولًا.

أين أضع دوال الفرز والتصفية؟

تقول المهارة إنها فتحات ميزة في قائمة الميزات، وليست خيارات عادية للجدول.

هل يجب أن أقرأ كل مرجع للميزات؟

لا. توصي المهارة بقراءة المراجع التي تطابق المهمة فقط.

التفاصيل

الوصف الأصلي من المؤلف

'Add or debug Table v9 features: registration, row-model slots, prerequisites, sorting, filtering, pagination, selection, spanning, and column layout. Read only task-relevant feature references.'

repo: TanStack/table

الشعبية

نجوم GitHub
29k
الترتيب
#9837
الترخيص
MIT
آخر تحديث
21‏/10‏/2026

هل هذه المهارة مفيدة؟

0

سجّل الدخول للتصويت.

التعليقات

  • …

المزيد من المهارات من هذا المستودع

مهارات مشابهة