We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

how do I regex pattern validation to a custom editor field

if (!args.element.querySelector('.custom-field-row1')) {
let row: HTMLElement = createElement('div', { className: 'custom-field-row1' });
let formElement: HTMLElement = <HTMLElement>args.element.querySelector('.e-schedule-form');
formElement.firstChild.insertBefore(row, args.element.querySelector('.e-start-end-row'));
let container: HTMLElement = createElement('div', { className: 'custom-field-container1' });
let inputEle: HTMLInputElement = createElement('input', {
className: 'e-field', attrs: { id:'capacity' }
}) as HTMLInputElement;
container.appendChild(inputEle);
row.appendChild(container);
let inputobj: TextBox = new TextBox({ placeholder: 'Class capacity' });
inputobj.appendTo(inputEle);
inputEle.setAttribute('name', 'classCapacity');                    
}

1 Reply

HB Hareesh Balasubramanian Syncfusion Team December 4, 2019 08:56 AM

Hi Jose, 

Greetings from Syncfusion Support. 

Based on your requirement, we have prepared a sample using popupOpen event, which can be viewed from the following link, 

Kindly try the above sample, if you have any concerns please revert us back for further assistance. 

Regards, 
Hareesh 
 


Loader.
Live Chat Icon For mobile
Up arrow icon