feat: add slider, color, time to FieldType and slider props to FormField
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
de5ea170e1
commit
3f42fa38e2
1 changed files with 10 additions and 1 deletions
11
src/types.ts
11
src/types.ts
|
|
@ -12,7 +12,10 @@ export type FieldType =
|
|||
| 'tags'
|
||||
| 'note-link'
|
||||
| 'folder-picker'
|
||||
| 'rating';
|
||||
| 'rating'
|
||||
| 'slider'
|
||||
| 'color'
|
||||
| 'time';
|
||||
|
||||
export interface FormField {
|
||||
id: string;
|
||||
|
|
@ -25,6 +28,12 @@ export interface FormField {
|
|||
options?: string[];
|
||||
/** For note-link: restrict to files in this folder. */
|
||||
folder?: string;
|
||||
/** For slider: minimum value. */
|
||||
min?: number;
|
||||
/** For slider: maximum value. */
|
||||
max?: number;
|
||||
/** For slider: step increment. */
|
||||
step?: number;
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Reference in a new issue