diff --git a/litmus-ts/TestWidget.tsx b/litmus-ts/TestWidget.tsx new file mode 100644 index 000000000..e01912f3c --- /dev/null +++ b/litmus-ts/TestWidget.tsx @@ -0,0 +1,16 @@ +/** @jsxImportSource react */ + +import { Widget } from "cx/widgets"; +import { RenderingContext, Instance } from "cx/ui"; + +interface TestWidgetProps {} + +export class TestWidget extends Widget { + constructor(props: TestWidgetProps) { + super(props); + } + + render(context: RenderingContext, instance: Instance, key: string): React.ReactNode { + return
Test Widget
; + } +} diff --git a/litmus-ts/bugs/GridOnFetchRecords.tsx b/litmus-ts/bugs/GridOnFetchRecords.tsx new file mode 100644 index 000000000..f3f776bff --- /dev/null +++ b/litmus-ts/bugs/GridOnFetchRecords.tsx @@ -0,0 +1,91 @@ +import { + bind, + createAccessorModelProxy, + createFunctionalComponent, + KeySelection, +} from "cx/ui"; +import { + Button, + Grid, + GridColumnConfig, + LookupField, + PureContainer, +} from "cx/widgets"; + +const tags = ["history", "american", "crime", "tets"].map((tag) => ({ + name: tag, + id: tag, +})); + +interface Model { + $page: { + showGrid: boolean; + tag: string; + }; +} + +const m = createAccessorModelProxy(); + +const columns = [ + { + field: "id", + header: "ID", + }, + { + field: "title", + header: "Title", + }, + { + field: "body", + header: "Body", + }, +] as GridColumnConfig[]; + +export default createFunctionalComponent(() => ( + +