Skip to content

Commit

Permalink
clean-stories
Browse files Browse the repository at this point in the history
  • Loading branch information
louis-bompart committed Aug 15, 2024
1 parent b1aa3c9 commit 5d5fa54
Showing 1 changed file with 2 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,25 +31,7 @@ export const Default: Story = {
export const WithMaxValuesToDisplay: Story = {
name: 'With max values to display',
args: {
field: 'multi_value_field',
'max-values-to-display': 2,
},
};

export const WithCustomSlotValues: Story = {
name: 'With custom slot values',
args: {
field: 'multi_value_field',
},
render: (args) => {
const element = document.createElement('atomic-product-multi-value-text');
Object.keys(args).forEach((key) => {
element.setAttribute(key, args[key]);
});
const customSlot = document.createElement('span');
customSlot.setAttribute('slot', 'product-multi-value-text-value-custom');
customSlot.innerText = 'Custom Value';
element.appendChild(customSlot);
return element;
'attributes-field': 'ec_category',
'attributes-max-values-to-display': 1,
},
};

0 comments on commit 5d5fa54

Please sign in to comment.