-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
24 additions
and
18 deletions.
There are no files selected for viewing
3 changes: 1 addition & 2 deletions
3
vuu-ui/packages/vuu-data-react/src/data-editing/get-data-item-edit-control.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 6 additions & 6 deletions
12
vuu-ui/packages/vuu-ui-controls/src/vuu-typeahead-input/useVuuTypeaheadInput.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 11 additions & 6 deletions
17
vuu-ui/showcase/src/examples/Filters/InlineFilter/InlineFilter.examples.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,28 @@ | ||
import { useMemo } from "react"; | ||
import { FilterValueChangeHandler, InlineFilter } from "@finos/vuu-filters"; | ||
import { SimulTable } from "../../Table/SIMUL.examples"; | ||
import { LocalDataSourceProvider } from "@finos/vuu-data-test"; | ||
|
||
let displaySequence = 0; | ||
|
||
const table = { module: "SIMUL", table: "instrumentsExtended" } as const; | ||
|
||
export const SimpleInlineFilters = () => { | ||
const inlineFilter = useMemo(() => { | ||
const onChange: FilterValueChangeHandler = (column, value) => { | ||
console.log(`apply filter to column ${column.name} using value ${value}`); | ||
}; | ||
return <InlineFilter onChange={onChange} />; | ||
return <InlineFilter onChange={onChange} table={table} />; | ||
}, []); | ||
|
||
return ( | ||
<SimulTable | ||
customHeader={inlineFilter} | ||
height="100%" | ||
tableName="instrumentsExtended" | ||
/> | ||
<LocalDataSourceProvider modules={["SIMUL"]}> | ||
<SimulTable | ||
customHeader={inlineFilter} | ||
height="100%" | ||
tableName={table.table} | ||
/> | ||
</LocalDataSourceProvider> | ||
); | ||
}; | ||
SimpleInlineFilters.displaySequence = displaySequence++; |