Usage
Signature:
interface CHighlightTextElement
Typescript Import Format
//To typecheck the element APIs, import as below.
import { CHighlightTextElement } from "oj-c/highlight-text";
//For the transpiled javascript to load the element's module, import as below
import "oj-c/highlight-text";
For additional information visit:
Note: Application logic should not interact with the component's properties or invoke its methods until the BusyContext indicates that the component is ready for interaction.
Attributes
-
match-text :string
-
The text string to match.
Names
Item Name Property matchTextProperty change event matchTextChangedProperty change listener attribute (must be of type function, see Events and Listeners for additional information.) on-match-text-changed -
text :string
-
The text string to apply highlighting to.
Names
Item Name Property textProperty change event textChangedProperty change listener attribute (must be of type function, see Events and Listeners for additional information.) on-text-changed
Methods
-
getProperty(property) : {any}
-
Retrieves the value of a property or a subproperty.
Parameters:
Name Type Description propertyThe property name to get. Supports dot notation for subproperty access. Returns:
- Type
- any
-
setProperties(properties) : {void}
-
Performs a batch set of properties.
Parameters:
Name Type Description propertiesAn object containing the property and value pairs to set. Returns:
- Type
- void
-
setProperty(property, value) : {void}
-
Sets a property or a single subproperty for complex properties and notifies the component of the change, triggering a corresponding event.
Parameters:
Name Type Description propertyThe property name to set. Supports dot notation for subproperty access. valueThe new value to set the property to. Returns:
- Type
- void