Last active
February 13, 2025 09:48
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { CssFieldMappings, FieldMapping, FieldMappings } from '@progress/sitefinity-widget-designers-sdk'; | |
import { ContentListEntity } from '@progress/sitefinity-nextjs-sdk/widgets'; | |
import { contentListDefaultViewMeta, ContentListEntity } from '@progress/sitefinity-nextjs-sdk/widgets'; | |
const viewMeta = { | |
...contentListDefaultViewMeta, | |
CardsListCustom: [ | |
{ fieldTitle: 'Heading', fieldType: 'ShortText' } | |
] | |
}; | |
export class ExtendedContentListEntity extends ContentListEntity { | |
/** | |
* Decorators defined here will override the ones from the base entity. | |
* Other decorators will be inherited | |
*/ | |
@FieldMappings(viewMeta) | |
ListFieldMapping: Array<FieldMapping> | null = null; | |
/** | |
* Decorators defined here will override the ones from the base entity. | |
* Other decorators will be inherited | |
*/ | |
@CssFieldMappings(viewMeta, true) | |
CssClasses: Array<{ FieldName: string; CssClass: string; }> | null = null; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
...
...