Hi guys.
Is there any way to show like in Ext field.afterSubTpl:
type: 'textfield'
afterSubTpl: [] // Template function that would return some html to be shown under the field's inputSee screenshot: "May include...."
Thanks
We don't have that same feature, but you can set an error message for the fields using https://bryntum.com/products/grid/docs/api/Core/widget/TextField#function-setError, and it will be displayed in a tooltip anchored to that field.
Best regards,
Tasnim
How to ask for help? Please read our Support Policy
Hi there,
There is no built‑in afterSubTpl for Bryntum fields. The usual approach is to add your own element under the input after the field has been rendered (this won’t interfere with setError). Example:
const f = new TextField({
appendTo : document.body,
width : 200,
label : 'Enter text',
style : 'margin-right: .5em'
});
f.currentElement.insertAdjacentHTML('afterend', '<div class="b-field-help">May include ...</div>');
And to set the error you'd need to use the setError method https://bryntum.com/products/grid/docs/api/Core/widget/TextField#function-setError
Best regards,
Tasnim
How to ask for help? Please read our Support Policy
Hi there,
Totally makes sense. I've opened a feature request for it here https://github.com/bryntum/support/issues/12213
If you have any other questions or concerns, please feel free to reach out! We're here for you.
Best regards,
Tasnim
How to ask for help? Please read our Support Policy