What happened to the labelHtml param for widget.aui.form.text?

Some of my plugins use the soy text form and the labelHtml parameter is showing up as undefined in my plugins. The rest of the parameters show up correctly.

I'm developing plugins for stash 3.3.0 and I'm having trouble finding any documentation on what this parameter has been renamed to.

Where should I be looking?


1 answer

1 accepted

1 vote
Answer accepted
Adam Ahmed Atlassian Team Sep 25, 2014

It's worth noting that most of Stash's Soy templates are not actually considered API, and are not stable. The scope of the API is listed here https://developer.atlassian.com/stash/docs/latest/reference/soy-api.html#API_Scope (currently includes Stash.template.* and aui.*)  If you want to use the real AUI-provided Soy templates, they live under aui.*, not widget.aui.*.

I would suggest switching to the AUI templates, where possible. There is currently little/no documentation for them, unfortunately, but the source for form templates  is at https://bitbucket.org/atlassian/aui/src/29e1d8dfed69693c0058e95a2430fe062d9698b8/src/soy/form.soy?at=master

aui.form.textField is probably the most interesting template to you right now.

With all that said, the labelHtml param was renamed to labelContent, but that could change at any time. To be honest, we'd ideally like to kill off the widget.aui.* templates as soon as we can, so your best bet is to switch to using a stable API.

Thanks, that was very useful.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Mar 14, 2019 in Bitbucket Pipelines

Building a Bitbucket Pipe as a casual coder

...ipe.sh :  #!/bin/bash source "$(dirname "$0")/common.sh" enable_debug extra_args="" if [[ "${DEBUG}" == "true" ]]; then extra_args="--verbose" fi # mandatory variables R...

256 views 0 12
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you