-
- {row.demo}
-
+
+ {row.demo}
+ {row.linkToCode ? (
+
+
+ Open demo source
+
+
+ ) : null}
+
);
}
diff --git a/docs/data/data-grid/demo/PopularFeaturesDemo.tsx b/docs/data/data-grid/demo/PopularFeaturesDemo.tsx
index 4e614cc31a79..52e9484d115e 100644
--- a/docs/data/data-grid/demo/PopularFeaturesDemo.tsx
+++ b/docs/data/data-grid/demo/PopularFeaturesDemo.tsx
@@ -36,7 +36,7 @@ import BasicGroupingDemo from '../column-groups/BasicGroupingDemo';
import EditingWithDatePickers from '../recipes-editing/EditingWithDatePickers';
import CellSelectionGrid from '../cell-selection/CellSelectionRangeStyling';
import AddNewColumnMenuGrid from '../column-menu/AddNewColumnMenuGrid';
-import HeaderFiltering from '../filtering/HeaderFilteringDataGridPro';
+import HeaderFilteringDataGridPro from '../filtering/HeaderFilteringDataGridPro';
import ClipboardPaste from '../clipboard/ClipboardPaste';
type Row = {
@@ -47,6 +47,7 @@ type Row = {
detailPage: string;
demo: React.JSX.Element;
newBadge?: boolean;
+ linkToCode?: string;
};
export const featuresSet: Row[] = [
@@ -57,6 +58,7 @@ export const featuresSet: Row[] = [
plan: 'Pro',
detailPage: '/master-detail/',
demo: