Skip to content

Commit 9781316

Browse files
RaushenTucchhaa
andauthored
🎴 CardView: filter sync - implement (#29742)
Co-authored-by: Eldar Iusupzhanov <[email protected]>
1 parent c592e7e commit 9781316

File tree

36 files changed

+1103
-146
lines changed

36 files changed

+1103
-146
lines changed

apps/react-storybook/stories/card_view/CardView.stories.tsx

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,10 @@ const meta: Meta<typeof CardView> = {
164164
'filterValue': {
165165
control: 'object',
166166
},
167+
'filterSyncEnabled': {
168+
control: 'radio',
169+
options: ['auto', true, false]
170+
},
167171
'filterPanel.visible': {
168172
control: 'boolean'
169173
},
@@ -385,6 +389,40 @@ export const SearchCardView: Story = {
385389
}
386390
}
387391

392+
export const FilterSyncStory: Story = {
393+
...SearchCardView,
394+
args: {
395+
...SearchCardView.args,
396+
dataSource: 'local',
397+
columns: 'local',
398+
'searchPanel.highlightCaseSensitive': false,
399+
'searchPanel.highlightSearchText': true,
400+
'searchPanel.text': '',
401+
'searchPanel.visible': true,
402+
'searchPanel.placeholder': 'Search...',
403+
'searchPanel.searchVisibleColumnsOnly': false,
404+
'searchPanel.width': 160,
405+
'headerFilter.visible': true,
406+
'paging.pageSize': 6,
407+
headerFilter: {
408+
width: 252,
409+
height: 325,
410+
allowSelectAll: true,
411+
search: {
412+
enabled: false,
413+
timeout: 500,
414+
mode: 'contains',
415+
editorOptions: {},
416+
},
417+
texts: {
418+
emptyValue: 'empty',
419+
ok: 'ok',
420+
cancel: 'cancel',
421+
},
422+
}
423+
}
424+
}
425+
388426
export const HeaderFilterStory: Story = {
389427
...DefaultMode,
390428
args: {

0 commit comments

Comments
 (0)