Hi Miloš,
Greetings from Syncfusion support.
Query 1: Which is preferable<ejs-textbox> tag helper, and second one is to use regular html tags with proper classes.
You can prefer the <ejs-textbox> tag helper. The reason is in case if you need floating label, need to add required attribute in the html tags and the manual processing has to be made. So, in order to avoid this complexity, you can prefer the tag helper <ejs-textbox>.
Query 2: Can I use icons with Syncfusion TextBox more easily then in the documentation example.
Yes, now you can add the icon for textbox using the public method addIcon. As like below code snippet.
<div class="control-section">
<div class="control_wrapper accordion-control-section">
<ejs-textbox id="default" placeholder="Enter date" created="onCreateIcon"></ejs-textbox>
</div>
</div>
<script>
function onCreateIcon() {
var textboxObj = document.getElementById("default");
textboxObj.ej2_instances[0].addIcon("append", "e-date-icon");
}
</script>
|
Please find the sample link below:
Regards,
Sureshkumar P