Our blazing fast Grid component built with pure JavaScript


Post by vadim_g »

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 input

See screenshot: "May include...."

Screenshot 2025-11-11 at 21.27.44.png
Screenshot 2025-11-11 at 21.27.44.png (36.27 KiB) Viewed 1256 times

Thanks


Post by tasnim »

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


Post by vadim_g »

that is not an error, but a HELP message, in case you have missed the the title: "Field help messages, sub-tip", and we need the error also, at the same time.


Post by tasnim »

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


Post by vadim_g »

I donno what the others are building...but we have a lots of sub field messages, to instruct the user what's abbout. So maybe is worth considering it as Feature Request, we for sure will override the Field with a new config to support it.


Post by tasnim »

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


Post Reply