@claspo/common 7.0.6 → 7.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ClComponentType } from '../document/Document.interface';
|
|
1
|
+
import { ClBaseComponentI, ClComponentType } from '../document/Document.interface';
|
|
2
2
|
export interface PropertyPaneManifestI {
|
|
3
3
|
content: BasePropertyPaneManifestModelI[];
|
|
4
4
|
general?: BasePropertyPaneManifestModelI[];
|
|
@@ -289,10 +289,14 @@ export interface SelectPropertyPaneManifestModelI extends BasePropertyPaneManife
|
|
|
289
289
|
}
|
|
290
290
|
export interface SelectPropertyPaneManifestParamsI {
|
|
291
291
|
label: string;
|
|
292
|
-
options
|
|
292
|
+
options?: SelectOptionI[];
|
|
293
|
+
getOptions?: GetSelectOptionsCallbackI;
|
|
293
294
|
overlayWidth?: number;
|
|
294
295
|
defaultValue?: any;
|
|
295
296
|
}
|
|
297
|
+
export type GetSelectOptionsCallbackI = (payload: {
|
|
298
|
+
componentModel: ClBaseComponentI;
|
|
299
|
+
}) => SelectOptionI[];
|
|
296
300
|
export interface TextStylesPropertyPaneManifestModelI extends BasePropertyPaneManifestModelI {
|
|
297
301
|
params: TextStylesPropertyPaneManifestParamsI[];
|
|
298
302
|
}
|