2024-08-13 23:21:48 +00:00
|
|
|
import {GristDoc} from 'app/client/components/GristDoc';
|
|
|
|
import {ViewSectionRec} from 'app/client/models/entities/ViewSectionRec';
|
|
|
|
import {CustomSectionConfig} from 'app/client/ui/CustomSectionConfig';
|
|
|
|
import {ICustomWidget} from 'app/common/CustomWidget';
|
2023-08-29 14:50:42 +00:00
|
|
|
|
|
|
|
export class PredefinedCustomSectionConfig extends CustomSectionConfig {
|
|
|
|
|
|
|
|
|
|
|
|
constructor(section: ViewSectionRec, gristDoc: GristDoc) {
|
|
|
|
super(section, gristDoc);
|
|
|
|
}
|
|
|
|
|
|
|
|
public buildDom() {
|
|
|
|
return this._customSectionConfigurationConfig.buildDom();
|
|
|
|
}
|
|
|
|
|
|
|
|
protected shouldRenderWidgetSelector(): boolean {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2024-08-13 23:21:48 +00:00
|
|
|
protected async _getWidgets(): Promise<ICustomWidget[]> {
|
|
|
|
return [];
|
2023-08-29 14:50:42 +00:00
|
|
|
}
|
|
|
|
}
|