mirror of
https://github.com/silverstripe/silverstripe-tagfield
synced 2024-06-28 15:39:23 +02:00
FIX Replace 4 space indent with 2 spaces
This commit is contained in:
parent
47f86a6c25
commit
a2b1a82734
|
@ -2,40 +2,40 @@ import React from 'react';
|
||||||
import TagField from 'components/TagField';
|
import TagField from 'components/TagField';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
title: 'TagField/TagField',
|
title: 'TagField/TagField',
|
||||||
|
|
||||||
decorators: [
|
decorators: [
|
||||||
(storyFn) => (
|
(storyFn) => (
|
||||||
<div style={{ width: '250px' }} className="ss-tag-field">
|
<div style={{ width: '250px' }} className="ss-tag-field">
|
||||||
{storyFn()}
|
{storyFn()}
|
||||||
</div>
|
</div>
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
|
||||||
export const SimpleExample = () => (
|
export const SimpleExample = () => (
|
||||||
<TagField
|
<TagField
|
||||||
name="test"
|
name="test"
|
||||||
options={[
|
options={[
|
||||||
{ Title: 'One', Value: 1 },
|
{ Title: 'One', Value: 1 },
|
||||||
{ Title: 'Two', Value: 2 },
|
{ Title: 'Two', Value: 2 },
|
||||||
{ Title: 'Three', Value: 3 },
|
{ Title: 'Three', Value: 3 },
|
||||||
{ Title: 'Four', Value: 4 },
|
{ Title: 'Four', Value: 4 },
|
||||||
{ Title: 'Five', Value: 5 },
|
{ Title: 'Five', Value: 5 },
|
||||||
]}
|
]}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
|
|
||||||
export const MultipleSelection = () => (
|
export const MultipleSelection = () => (
|
||||||
<TagField
|
<TagField
|
||||||
name="test"
|
name="test"
|
||||||
multi
|
multi
|
||||||
options={[
|
options={[
|
||||||
{ Title: 'One', Value: 1 },
|
{ Title: 'One', Value: 1 },
|
||||||
{ Title: 'Two', Value: 2 },
|
{ Title: 'Two', Value: 2 },
|
||||||
{ Title: 'Three', Value: 3 },
|
{ Title: 'Three', Value: 3 },
|
||||||
{ Title: 'Four', Value: 4 },
|
{ Title: 'Four', Value: 4 },
|
||||||
{ Title: 'Five', Value: 5 },
|
{ Title: 'Five', Value: 5 },
|
||||||
]}
|
]}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user