Hello Team,
here i am developing a dialog screen and i am refering to this documentation,,
https://developer.atlassian.com/display/AUI/Dialog
but i am not able to get how can i add elements like textBox select list or simply a lable to dialog.
here is my code snippet.
AJS.$(document).ready(function() { var list=document.getElementById("listOfIteams"); AJS.$("#addLink").click(function() { var popup = new AJS.Dialog(500, 400); // create a dialog 860px wide x 530px high popup.addHeader("this is dialog", "aui"); popup.addLink("Cancel", function (popup) { popup.hide(); }, "#"); popup.show(); }); });
any help is appreciated.
Thanks and regards,
Moiz.
Community moderators have prevented the ability to post new answers.
Take a look at the AUI Sandbox - https://docs.atlassian.com/aui/latest/sandbox/#. There is a sample dialog with contents there.
Do not forget to click "Javascript" toolbar button on the top, so you see the JS code.
Here's a sample:
var popup = new AJS.Dialog(500, 400); // create a dialog 860px wide x 530px high popup.addHeader("this is dialog", "aui"); popup.addLink("Cancel", function (popup) { popup.hide(); }, "#"); // add panel 1 popup.addPanel("Panel 1", '<p><input type="text" name="test"/></p>', "panel-body"); // You can remove padding with: // dialog.get("panel:0").setPadding(0); popup.show();
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.