// eslint-disable-next-line @typescript-eslint/no-unused-vars namespace OSFramework.OSUI.Patterns.SectionIndexItem { /** * Class that represents the custom configurations received by the SectionIndexItem. */ export class SectionIndexItemConfig extends AbstractConfiguration { /** Id of the widget the page scrolls to when the item is clicked. */ public ScrollToWidgetId: string; /** * Method that will check if a given property (key) can be changed/updated! * * @param isBuilt True when pattern has been built! * @param key property name * @returns boolean */ public validateCanChange(isBuilt: boolean, key: string): boolean { if (isBuilt) { return key !== Enum.Properties.ScrollToWidgetId; } return true; } } }