I am trying to display an inline dialog element from the AUI library.
<div class="aui-item narrow-item"> <a data-aui-trigger aria-controls="show-on-hover" href="#show-on-hover"> <span class="aui-icon aui-icon-small aui-iconfont-help float-right">Help</span> </a> <aui-inline-dialog id="show-on-hover" responds-to="hover" alignment="right middle"> <p>First paragraph</p> <p>Second paragraph</p> <p>Third paragraph</p> </aui-inline-dialog> </div>
I have referenced AUI libraries in the <head> section on my page
<link rel="stylesheet" href="//aui-cdn.atlassian.com/aui-adg/5.9.17/css/aui.min.css" media="all"> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script> <script src="//aui-cdn.atlassian.com/aui-adg/5.9.17/js/aui.min.js"></script>
However, for some reason the dialog just doesn't appear.
Any ideas why?
@Arturas Rimkus scurtis@ is my email.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Robert Massaioli, thanks for the suggestion, we have now moved to Cloud Dev. @Sean Curtis, how can I add you to it? I believe I'll need your email address? Is there a way to PM here?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Sean Curtis and @Arturas Rimkus now that we have released the Cloud Development Environment (https://developer.atlassian.com/blog/2016/04/cloud-ecosystem-dev-env/) Arturas could create a cloud development environment, install his add-on there, and then create a user for Sean and give him access. Then you could both diagnose the problem against the same JIRA instance and get to the root cause quickly instead of this back and forth.
Just a quick suggestion.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes. It works however running my html+css standalone. How can I send those over?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You got that error using the jsbin link I posted above?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I tried, but it's not rendering properly - console says AJS (to run Atlassian scripts) is not defined.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Arturas Rimkus could you reproduce your example on jsbin? Use http://jsbin.com/leboqi/edit?html,output as a starting point (I copied your original code in there)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can I send you the html and css file? You could then see the exact code.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'd have to see a screenshot @Arturas Rimkus.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Sean Curtis, could you please give me any clues as to why my inline-dialog is mis-positioned? Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks @Sean Curtis, I already got that, I shouldn't have even asked How about the (1) part of my question? What determines where the dialog will display?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sure
#id-of-your-inline-dialog { max-width: 300px; }
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You both are right, thanks. It shows up now. Except for a couple of issues. (1) The inline dialog is not displayed next to the element that triggered - it displays at (what seems to be) a random edge of the page. (2) Is there a way to set dialogue max width? It now displays almost screen-wide.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yup — the custom element version of the <aui-inline-dialog> element is only in experimental.
See http://jsbin.com/juyabet/edit?html,output for a working example.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Those docs say that inline dialog is "Not in core". Have you tried also including aui-experimental.(js|css) in the head of your page?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.
Register NowOnline forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.