Announcements
No record found.
import { IInputs, IOutputs } from "./generated/ManifestTypes"; export class CustomTextboxControl implements ComponentFramework.StandardControl<IInputs, IOutputs> { private _inputElement: HTMLInputElement; constructor(private context: ComponentFramework.Context<IInputs>, private notifyOutputChanged: () => void, private container: HTMLDivElement) { // Create and append input element to the container this._inputElement = document.createElement("input"); this._inputElement.setAttribute("type", "text"); this.container.appendChild(this._inputElement); // Add keypress event listener this._inputElement.addEventListener('keypress', this.handleKeyPress.bind(this)); } public init(): void { // Initialize your control } public updateView(context: ComponentFramework.Context<IInputs>): void { // Update your control view } public getOutputs(): IOutputs { // Return outputs return {}; } public destroy(): void { // Cleanup code this._inputElement.removeEventListener('keypress', this.handleKeyPress.bind(this)); } private handleKeyPress(event: KeyboardEvent): void { alert("test"); } }
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our 2026 Super Stars!
Thanks to all of our 2025 Community Spotlight stars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
ManoVerse 180 Super User 2026 Season 1
11manish 123
CU11031447-0 100