类别

在仪表板上对表单进行分组。

  1. categories 属性
  2. Category 对象

categories 属性

config.yaml 的顶层 categories 列表:

属性 说明
categories
array

Categories
🔗 valid category object

The categories group the forms together in a tree-like view. The Default category is mandatory and holds all forms without a category.

新增于 3.1.0

Added nested categories

示例:

1) Categories

categories:
- name: Default          # is mandatory
  icon: bars
- name: Provisioning
  icon: pencil-alt
- name: Decommissioning
  icon: trash-alt
  items:                 # sub categories
    - name: Linux
      icon: star
    - name: Windows
      icon: bullseye  

Category 对象

categories 列表中的每一项:

A category groups together 1 or more forms.

属性 说明
name
string / required / unique

The name of the category
alphanumeric + dash + underscore + space

The name of a category has to be unique. The Default category is mandatory and holds all non-category forms.

icon
string

Category icon
Free fontawesome 6 icon

You can add a nice icon to your categories. The icon name is a free fontawesome 6 icon. You can find more information at www.fontawesome.com.

items
object
added in version 3.1.0

Sub categories
A category object

A category can have sub categories, which is again a category object.

Examples

1) Categories

categories:
- name: Default          # is mandatory
  icon: bars
- name: Provisioning
  icon: pencil-alt
- name: Decommissioning
  icon: trash-alt
  items:                 # sub categories
    - name: Linux
      icon: star
    - name: Windows
      icon: bullseye