Files
directus/app/src/interfaces/status
2020-08-11 13:15:04 -04:00
..
2020-07-29 11:24:52 -04:00
2020-07-29 11:24:52 -04:00
2020-07-29 11:24:52 -04:00

Status Interface

Renders a dropdown with the available status options.

Options

Option Description Default
status_mapping What statuses are available null

Status Mapping format

type Status = {
  [key: string]: {
    name: string;
    text_color: string;
    background_color: string;
    soft_delete: boolean;
    published: boolean;
  }
}

status_mapping is the only option for an interface that isn't camelCased. This is due to the fact that the API relies on the same setting for it's permissions management.