Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Is it able to change width of selects inputs at report configuration?

Lumbermash
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 22, 2019

Hi, I have a problem when im configurating a report from a plugin that I have. The report has properties at atlassian-plugin.xml, and with the knowledge that I actually have I couldn't find a way to change the width of those properties, because its Atlassian code. So I tryed to add a resource at my report with a js, which changes width.style into auto, to make it bigger or lower depending on the values of the select. But I couldn't make it work... I saw that there isn't a velocity template where I can change styles so I don't know what else try. And thats why Im here asking for some help. Thing that I will really apreciate. Below I show you the parts of the code that i was talking about:

Next is the report from the atlassian-plugin.xml:

<report key="xxxx" i18n-name-key="xxxxx" name="xxxx"
class="xxxx">
<description key="xxxx">xxxx</description>
<label key="xxxx" />
<resource type="velocity" name="view" location="xxxx" />
<resource type="velocity" name="excel" location="xxxx" />
<resource type="i18n" name="i18n" location="xxxx" />
<resource name="select-browser-autosize.js" type="download" location="xxxx/select-browser-autosize.js"></resource>
<properties>
<property>
<key>labels</key>
<name>xxxx</name>
<description>xxxx</description>
<type>select</type>
<values class="xxxx" />
</property>
<properties>
<report>

Next its the js file content, I searched at the created code and the id that is put at this select is this one so I changed the width of it:

document.getElementById("labels_select").style.width="auto"

 If you need some more information don't worry about ask, I really apreciate any help.

Thanks.

0 answers

Suggest an answer

Log in or Sign up to answer