@directus-labs/inline-repeater-interface

中文文档
1.0.2发布于 2026/03/03MITES Module近 30 天下载 4867

A powerful interface for managing repeatable form fields within Directus that allows inline editing and reordering of items.

原始使用文档
文档目录7 节
  1. Features
  2. Usage
  3. Installation and Setup
  4. Configuration Options
  5. Fields Configuration
  6. Display Options
  7. Example Configuration

Inline Repeater Interface

Inline Repeater Interface

A powerful interface for managing repeatable form fields within Directus that allows inline editing and reordering of items.

An alternative to the core Repeater Interface that opens inline as opposed to a drawer.

Note: This interface is for JSON fields only and doesn't support validation.

Features

  • Inline editing of repeatable fields
  • Drag and drop reordering
  • Expandable/collapsible accordion items
  • Customizable field templates
  • Confirmation dialogs for item removal
  • Expand/Collapse all functionality

Usage

Inline Repeater Example

The interface presents a list of repeatable items that can be:

  1. Added using the "Add New" button
  2. Expanded/collapsed for editing
  3. Reordered via drag and drop
  4. Removed with confirmation (optional)

Installation and Setup

Follow the Official Guide for installing extensions from the Marketplace or manually.

Configuration Options

The interface can be extensively customized through its configuration panel:

Inline Repeater Interface Configuration

Inline Repeater Interface Fields Configuration

Fields Configuration

  • Define custom fields with:
    • Field name
    • Field width (half/full)
    • Field type
    • Required status
    • Interface selection
    • Interface options
    • Display configuration
    • Field notes

Display Options

  • Template: Customize how items are displayed in the collapsed state
  • Add Label: Customize the "Add New" button text
  • Sort: Enable automatic sorting of items by a specific field
  • Limit: Set maximum number of items
  • Require Confirmation to Remove: Shows a confirmation dialog when removing items

Example Configuration

{
    "fields": [
        {
            "field": "title",
            "type": "string",
            "interface": "input",
            "width": "full",
            "required": true
        },
        {
            "field": "description",
            "type": "text",
            "interface": "textarea",
            "width": "full"
        }
    ],
    "template": "{{title}}",
    "addLabel": "Add Item",
    "showConfirmDiscard": true
}

版本与发布记录

@directus-labs/inline-repeater-interface 共发布 3 个版本,首次发布于 2025/01/30;过去 12 个月发布了 1 个版本。

版本发布日期距今
1.0.2latest2026/03/038 个月前
1.0.12025/10/131.1 年前
1.0.02025/01/301.8 年前

关于 @directus-labs/inline-repeater-interface 的常见问题

@directus-labs/inline-repeater-interface 是什么?

A powerful interface for managing repeatable form fields within Directus that allows inline editing and reordering of items.

如何安装 @directus-labs/inline-repeater-interface?

在项目目录运行 npm install @directus-labs/inline-repeater-interface,或使用 pnpm add / yarn add / bun add。

@directus-labs/inline-repeater-interface 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/directus-labs__inline-repeater-interface 是否存在。

@directus-labs/inline-repeater-interface 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@directus-labs/inline-repeater-interface 可以商用吗?

@directus-labs/inline-repeater-interface 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@directus-labs/inline-repeater-interface 的下载量有多少?

根据 npm 官方下载统计,@directus-labs/inline-repeater-interface 在 2026/10/13 – 2026/11/11 这 30 天内被下载 4,867 次,日均约 162 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@directus-labs/inline-repeater-interface 还在维护吗?

最新版本 1.0.2 发布于 2026/03/03(8 个月前);至今共发布 3 个版本,其中过去 12 个月发布了 1 个;首次发布于 2025/01/30。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。