Skip to content

Commit

Permalink
fix: remove unwanted params
Browse files Browse the repository at this point in the history
  • Loading branch information
markuczy committed Nov 7, 2024
1 parent 5924133 commit 50b1d17
Showing 1 changed file with 4 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export const WithPageSizes = {
const CustomContentInteractiveDataView: StoryFn<InteractiveDataViewComponent> = (args) => ({
props: args,
template: `
<ocx-interactive-data-view [filterViewDisplayMode]="filterViewDisplayMode" [disableFilterView]="disableFilterView" [emptyResultsMessage]="emptyResultsMessage" [columns]="columns" [data]="data">
<ocx-interactive-data-view [emptyResultsMessage]="emptyResultsMessage" [columns]="columns" [data]="data">
<ng-template #listItem let-item>
<div class="w-full px-4 py-2 card mb-4">
<p>{{item.product}}</p>
Expand All @@ -69,7 +69,7 @@ export const WithCustomContentTemplates = {
const CustomTableCellsInteractiveDataView: StoryFn<InteractiveDataViewComponent> = (args) => ({
props: args,
template: `
<ocx-interactive-data-view [filterViewDisplayMode]="filterViewDisplayMode" [disableFilterView]="disableFilterView" [columns]="columns" [data]="data">
<ocx-interactive-data-view [emptyResultsMessage]="emptyResultsMessage" [columns]="columns" [data]="data">
<ng-template pTemplate="stringTableCell" let-rowObject="rowObject" let-column="column">
<ng-container>STRING: {{ rowObject[column.id] }} </ng-container>
</ng-template>
Expand All @@ -86,15 +86,13 @@ export const WithCustomTableCellTemplates = {
render: CustomTableCellsInteractiveDataView,
args: {
...defaultComponentArgs,
disableFilterView: false,
filterViewDisplayMode: 'button',
},
}

const CustomTableFilterCellsInteractiveDataView: StoryFn<InteractiveDataViewComponent> = (args) => ({
props: args,
template: `
<ocx-interactive-data-view [filterViewDisplayMode]="filterViewDisplayMode" [disableFilterView]="disableFilterView" [columns]="columns" [data]="data">
<ocx-interactive-data-view [emptyResultsMessage]="emptyResultsMessage" [columns]="columns" [data]="data">
<ng-template pTemplate="stringTableCell" let-rowObject="rowObject" let-column="column">
<ng-container>STRING: {{ rowObject[column.id] }} </ng-container>
</ng-template>
Expand All @@ -117,15 +115,13 @@ export const WithCustomTableFilterCellTemplates = {
render: CustomTableFilterCellsInteractiveDataView,
args: {
...defaultComponentArgs,
disableFilterView: false,
filterViewDisplayMode: 'button',
},
}

const CustomTableColumnCellsInteractiveDataView: StoryFn<InteractiveDataViewComponent> = (args) => ({
props: args,
template: `
<ocx-interactive-data-view [filterViewDisplayMode]="filterViewDisplayMode" [disableFilterView]="disableFilterView" [columns]="columns" [data]="data">
<ocx-interactive-data-view [emptyResultsMessage]="emptyResultsMessage" [columns]="columns" [data]="data">
<ng-template pTemplate="stringTableCell" let-rowObject="rowObject" let-column="column">
<ng-container>STRING: {{ rowObject[column.id] }} </ng-container>
</ng-template>
Expand Down Expand Up @@ -160,8 +156,6 @@ export const WithCustomTableColumnTemplates = {
render: CustomTableColumnCellsInteractiveDataView,
args: {
...defaultComponentArgs,
disableFilterView: false,
filterViewDisplayMode: 'button',
},
}

Expand Down

0 comments on commit 50b1d17

Please sign in to comment.