tagInput
Tags a BrowserSDK:TaggableElement to be tracked as InputContext.
tagInput = (parameters: {
id: string,
options?: TagLocationOptions,
onError?: TrackerErrorHandlerCallback
}) => TagLocationReturnValue
info
This attribute directive builds on top of BrowserSDK:tagInput
Parameters
type | default value | ||
---|---|---|---|
required | id | string | |
optional | options | BrowserSDK:TagLocationOptions | { trackBlurs: true } |
optional | onError | BrowserSDK:TrackerErrorHandlerCallback | TrackerConsole.error |
Returns
BrowserSDK:TagLocationReturnValue
Events
Unless customized via the options
parameter, automatically triggers:
Usage example
<input [tagInput]="{ id: 'search' }" />