interface
Source: factory.ts ↗
IPlaceholderOptions
Common placeholder options.
export interface IPlaceholderOptions<T>
Properties
Property | Modifiers | Type | Description |
|---|---|---|---|
string | (Optional) By default, each placeholder has a unique generated id. | ||
(value?: T) => void | (Optional) Provide function to validate the placeholder value. |
Property details
IPlaceholderOptions.idproperty
By default, each placeholder has a unique generated id.
id?: string;
Remarks
You can provide id of the placeholder which can be useful for debugging. Please note that the id should be unique for all your placeholders.
IPlaceholderOptions.validateproperty
Provide function to validate the placeholder value.
validate?: (value?: T) => void;