Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions stories/calendar.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
IgcCalendarComponent,
defineComponents,
} from 'igniteui-webcomponents';
import { disableStoryControls } from './story.js';

defineComponents(IgcCalendarComponent);

Expand Down Expand Up @@ -232,6 +233,7 @@ export const Basic: Story = {
};

export const RangeSelection: Story = {
argTypes: disableStoryControls(metadata),
render: () => {
const start = new Date(currentYear, currentMonth, 5);
const end = new Date(currentYear, currentMonth, 18);
Expand All @@ -246,6 +248,7 @@ export const RangeSelection: Story = {
};

export const MultipleSelection: Story = {
argTypes: disableStoryControls(metadata),
render: () => {
const values = [
new Date(currentYear, currentMonth, 3),
Expand All @@ -264,6 +267,7 @@ export const MultipleSelection: Story = {
};

export const MultipleMonths: Story = {
argTypes: disableStoryControls(metadata),
render: () => {
const start = new Date(currentYear, currentMonth, 20);
const end = new Date(currentYear, currentMonth + 1, 10);
Expand All @@ -279,6 +283,7 @@ export const MultipleMonths: Story = {
};

export const DisabledDates: Story = {
argTypes: disableStoryControls(metadata),
render: () => {
const disabledDates: DateRangeDescriptor[] = [
{ type: DateRangeType.Weekends },
Expand All @@ -297,6 +302,7 @@ export const DisabledDates: Story = {
};

export const SpecialDates: Story = {
argTypes: disableStoryControls(metadata),
render: () => {
const specialDates: DateRangeDescriptor[] = [
{
Expand Down
Loading
Loading