Skip to content

Commit

Permalink
Add missing API details
Browse files Browse the repository at this point in the history
- `control: false`
- `table.disable`
  • Loading branch information
kylegach committed Nov 29, 2023
1 parent a0c55d8 commit d0751bb
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions docs/api/arg-types.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ Type:
```ts
{
[key: string]: {
control?: ControlType | { type: ControlType; /* See below for more */ };
control?: ControlType | { type: ControlType; /* See below for more */ } | false;
description?: string;
if?: Conditional;
mapping?: { [key: string]: { [option: string]: any } };
Expand Down Expand Up @@ -116,6 +116,7 @@ Type:
presetColors?: string[];
step?: number;
}
| false
```

Default:
Expand All @@ -124,7 +125,7 @@ Default:
2. Else, inferred from [`type`](#type)
3. Else, `'object'`

Specify the behavior of the [controls addon](../essentials/controls.md) for the arg. If you specify a string, it's used as the [`type`](#controltype) of the control. If you specify an object, you can provide additional configuration.
Specify the behavior of the [controls addon](../essentials/controls.md) for the arg. If you specify a string, it's used as the [`type`](#controltype) of the control. If you specify an object, you can provide additional configuration. Specifying `false` will prevent the control from rendering.

<!-- prettier-ignore-start -->

Expand Down Expand Up @@ -345,6 +346,7 @@ Type:
detail?: string;
summary: string;
};
disable?: boolean;
subcategory?: string;
type?: {
detail?: string;
Expand Down Expand Up @@ -387,6 +389,12 @@ Default: [Inferred](#automatic-argtype-inference)

The documented default value of the argType. `summary` is typically used for the value itself, while `detail` is used for additional information.

#### `table.disable`

Type: `boolean`

Set to `true` to remove the argType's row from the table.

#### `table.subcategory`

Type: `string`
Expand Down

0 comments on commit d0751bb

Please sign in to comment.