@@ -7,41 +7,46 @@ export type FieldChangeAdditionalData = IFilePickerResult;
77
88export interface IDynamicFieldProps {
99 context : BaseComponentContext ;
10-
10+
1111 /** Internal column name */
1212 columnInternalName : string ;
1313 cultureName ?: string ;
14-
14+
1515 /** SharePoint Field Type */
1616 fieldType : string ;
17-
17+
1818 /** Text label for field */
1919 label ?: string ;
20-
20+
2121 /** Placeholder text for field */
2222 placeholder ?: string ;
23-
23+
2424 /** Specifies if a field should be filled in order to pass validation */
2525 required : boolean ;
26-
26+
2727 /** Specifies if a field should be disabled */
2828 disabled ?: boolean ;
29-
29+
3030 /** List Item Id, passed to various utility/helper functions to determine things like selected User UPN, Lookup text, Term labels etc. */
3131 listItemId ?: number ;
32-
32+
3333 /** The default value of the field. */
3434 defaultValue : any ; // eslint-disable-line @typescript-eslint/no-explicit-any
3535
3636 /** Holds a field value. Set on all fields in the form. */
3737 value ?: any ; // eslint-disable-line @typescript-eslint/no-explicit-any
38-
38+
3939 /** Fired by DynamicField when a field value is changed */
40- onChanged ?: ( columnInternalName : string , newValue : any , validate : boolean , additionalData ?: FieldChangeAdditionalData ) => void ; // eslint-disable-line @typescript-eslint/no-explicit-any
40+ onChanged ?: (
41+ columnInternalName : string ,
42+ newValue : any ,
43+ validate : boolean ,
44+ additionalData ?: FieldChangeAdditionalData
45+ ) => void ; // eslint-disable-line @typescript-eslint/no-explicit-any
4146
4247 /** Represents the value of the field as updated by the user. Only updated by fields when changed. */
4348 newValue ?: any ; // eslint-disable-line @typescript-eslint/no-explicit-any
44-
49+
4550 /** Represents a stringified value of the field. Used in custom formatting and validation. */
4651 stringValue : any ; // eslint-disable-line @typescript-eslint/no-explicit-any
4752
@@ -50,7 +55,7 @@ export interface IDynamicFieldProps {
5055
5156 /** If validation raises an error message, it can be stored against the field here for display by DynamicField */
5257 validationErrorMessage ?: string ;
53-
58+
5459 /** Field Term Set ID, used in Taxonomy / Metadata fields */
5560 fieldTermSetId ?: string ;
5661
@@ -64,16 +69,16 @@ export interface IDynamicFieldProps {
6469 lookupField ?: string ;
6570
6671 // changedValue: any; // eslint-disable-line @typescript-eslint/no-explicit-any
67-
72+
6873 /** Equivalent to HiddenListInternalName, used for Taxonomy Metadata fields */
6974 hiddenFieldName ?: string ;
70-
75+
7176 /** Order of the field in the form */
7277 Order : number ;
73-
78+
7479 /** Used for files / image uploads */
7580 additionalData ?: FieldChangeAdditionalData ;
76-
81+
7782 // Related to various field types
7883 options ?: IDropdownOption [ ] ;
7984 isRichText ?: boolean ;
@@ -84,4 +89,5 @@ export interface IDynamicFieldProps {
8489 maximumValue ?: number ;
8590 minimumValue ?: number ;
8691 showAsPercentage ?: boolean ;
92+ orderBy ?: string ;
8793}
0 commit comments