mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-09-17 14:21:29 +00:00
[AAE-5954] added mapping options for filterParam
This commit is contained in:
@@ -28,15 +28,15 @@ export default {
|
|||||||
argTypes: {
|
argTypes: {
|
||||||
appName: { table: { disable: true } },
|
appName: { table: { disable: true } },
|
||||||
taskId: { table: { disable: true } },
|
taskId: { table: { disable: true } },
|
||||||
// filterParam: {
|
filterParam: {
|
||||||
// options: ['my', 'queued', 'completed'],
|
options: ['my', 'queued', 'completed'],
|
||||||
// mapping: {
|
mapping: {
|
||||||
// my: new FilterParamsModel({ name: 'My tasks' }),
|
my: new FilterParamsModel({ name: 'My tasks' }),
|
||||||
// queued: new FilterParamsModel({ name: 'Queued tasks' }),
|
queued: new FilterParamsModel({ name: 'Queued tasks' }),
|
||||||
// completed: new FilterParamsModel({ name: 'Completed tasks' })
|
completed: new FilterParamsModel({ name: 'Completed tasks' })
|
||||||
// },
|
},
|
||||||
// defaultValue: new FilterParamsModel({ name: 'Queued tasks' })
|
defaultValue: new FilterParamsModel({ name: 'Queued tasks' })
|
||||||
// }
|
}
|
||||||
}
|
}
|
||||||
} as Meta;
|
} as Meta;
|
||||||
|
|
||||||
@@ -55,6 +55,6 @@ Default.args = {
|
|||||||
export const FilterParams = Template.bind({});
|
export const FilterParams = Template.bind({});
|
||||||
FilterParams.args = {
|
FilterParams.args = {
|
||||||
appName: 'app',
|
appName: 'app',
|
||||||
filterParam: new FilterParamsModel({ id: '2', key: 'run-fake-task' }),
|
filterParam: new FilterParamsModel({ name: 'Queued tasks' }),
|
||||||
showIcons: true
|
showIcons: true
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user