@sitecore/sc-contenthub-webclient-sdk
Version:
Sitecore Content Hub WebClient SDK.
34 lines (33 loc) • 1.12 kB
TypeScript
import type { Nullable } from "../../../base-types";
import { PropertyDefinition } from "../property-definition";
import { StringContentType } from "../string-content-type";
/**
*
* String property definition.
*/
export declare class StringPropertyDefinition extends PropertyDefinition {
/**
* Describes how the content should be displayed.
*/
contentType: StringContentType;
/**
* A regular expression that must match the value of the property. If set to null the value is not checked.
*/
validationExpression: Nullable<string>;
/**
* The name of the {@link IDataSource} to get possible values from.
*
* @remarks
* Is null when there is no attached datasource.
*/
dataSourceName: Nullable<string>;
/**
* The name of the {@link IOptionList} to get possible values from.
*
* @remarks
* Is null when there is no attached option list.
*/
get optionListName(): Nullable<string>;
set optionListName(value: Nullable<string>);
constructor(name: string, init?: Omit<Partial<StringPropertyDefinition>, "name">);
}