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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

how do I regex pattern validation to a custom editor field

Thread ID:

Created:

Updated:

Platform:

Replies:

149631 Dec 4,2019 02:59 AM UTC Dec 4,2019 04:56 PM UTC Angular - EJ 2 1
loading
Tags: Schedule
jose lara
Asked On December 4, 2019 02:59 AM UTC

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');                    
}

Hareesh Balasubramanian [Syncfusion]
Replied On December 4, 2019 04:56 PM UTC

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 
 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon