Skip to content

Instantly share code, notes, and snippets.

@sitefinitySDK
Created January 30, 2025 15:24
Show Gist options
  • Save sitefinitySDK/11528446c7ea2e5444e8085787010639 to your computer and use it in GitHub Desktop.
Save sitefinitySDK/11528446c7ea2e5444e8085787010639 to your computer and use it in GitHub Desktop.
import { DefaultValue, DisplayName, ViewSelector, WidgetEntity } from '@progress/sitefinity-widget-designers-sdk';
@WidgetEntity('SitefinityData', 'Sitefinity data')
export class SitefinityDataEntity {
@DisplayName('Show summary')
@DefaultValue(true)
ShowSummary?: boolean;
@DisplayName('Items count')
@DefaultValue(5)
ItemsCount?: number;
@DisplayName('Widget template')
@DefaultValue('Default')
@ViewSelector([{Value: 'Default'}])
SfViewName?: string;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment