modal-dialog

Angular 2 ng2-bootstrap modal inside child component called from parent component

与世无争的帅哥 提交于 2019-12-17 06:54:11
问题 Hard to explain this. I had a simple working ng2-bootstrap modal example working. I expanded it to include Boostrap 4 Jumbotron example template for my home page, now the ng2-bootstrap modal does nothing. I can see the this.childModal.show() in child modal component is getting called on the button click, but nothing happens. No error in Chrome console and no modal shows. I have no idea what to do next :-/ // ============================================================================ // /src

Custom dialog on Android: How can I center its title?

不问归期 提交于 2019-12-17 04:48:09
问题 I'm developing an Android application. How can I center the title for a custom dialog that I'm using? 回答1: Just found this post while trying to figure out how to do the same thing. Here's how I did it for anyone else that finds this in the future. Style xml is as follows: <?xml version="1.0" encoding="utf-8"?> <resources> <style name="PauseDialog" parent="@android:style/Theme.Dialog"> <item name="android:windowTitleStyle">@style/PauseDialogTitle</item> </style> <style name="PauseDialogTitle"

Why is window.showModalDialog deprecated? What to use instead?

 ̄綄美尐妖づ 提交于 2019-12-17 04:33:49
问题 I was developing a GreaseMonkey script which used window.showModalDialog . But before finishing it, I have discovered that Firefox 29 warns: Use of window.showModalDialog() is deprecated. Use window.open() instead. For more help https://developer.mozilla.org/en-US/docs/Web/API/Window.open But the problem is that window.open needs UniversalBrowserWrite privilege in order to open a modal window using window.open . Then, why is window.showModalDialog deprecated? Is there any API which doesn't

How to make a JFrame Modal in Swing java

孤街浪徒 提交于 2019-12-16 21:28:10
问题 I have created one GUI in which I have used a JFrame. How should I make it Modal? 回答1: Your best bet is to use a JDialog instead of a JFrame if you want to make the window modal. Check out details on the introduction of the Modality API in Java 6 for info. There is also a tutorial. Here is some sample code which will display a JPanel panel in a JDialog which is modal to Frame parentFrame . Except for the constructor, this follows the same pattern as opening a JFrame . final JDialog frame =

MVVM, DialogService and Dialog Result

与世无争的帅哥 提交于 2019-12-14 03:53:05
问题 I'm currently learning WPF/MVVM, and have been using the code in the following question to display dialogs using a Dialog Service (including the boolean change from Julian Dominguez): Good or bad practice for Dialogs in wpf with MVVM? Displaying a dialog works well, but the dialog result is always false despite the fact that the dialog is actually being shown. My DialogViewModel is currently empty, and I think that maybe I need to "hook up" my DialogViewModel to the RequestCloseDialog event.

Present login screen on app startup

妖精的绣舞 提交于 2019-12-13 20:26:50
问题 In my previous question on UIView animations I mentioned that I have to simulate the modal behavior for some view. Here I'll explain why and ask about some better solution. The first view a user should see in my app is the login screen. Upon successful authentication the program checks if the user is a parent or a child (in a family). For each of these roles the app must provide different functionality. So I designed the app like this: Declare outlets for the login view controller and a tab

jQuery Overlay to focus on a particular div only. No Plugins please?

微笑、不失礼 提交于 2019-12-13 20:25:36
问题 I am trying to achieve a modal overlay using jQuery. When a user clicks on a particular button the popup div has to open up. The rest of the page should be grayed out. In other words nothing on the page can be selected or clicked other than this pop up. How can this be acheived? I have written the follwing: CODE and result is HERE I am not able to focus only on the div. For me the background is also active. How do I disable the area other than the pop up div? HTML: <div id="mainContainer"> I

Moving dialog up when keyboard present works except when ipad is turned around

。_饼干妹妹 提交于 2019-12-13 19:09:49
问题 The modal dialog gets moved up when they keyboard appears and moves down when the keyboard disappears. All is fine till I rotate the iPad. In any other orientation except the standard it doesn't work. When the iPad is turned around the modal dialog moves down when the keyboard appears instead of up and up when the keyboard disappears instead of down. This is the code I am using to position the modal dialog when keyboard appears/disappears. - (void)textFieldDidBeginEditing:(UITextField *

GWT dispose modal dialog by clicking outside of it

♀尐吖头ヾ 提交于 2019-12-13 17:15:35
问题 I have a HSV color selector on a dialog and I would like to provide user several ways to dispose the dialog. I have normal buttons and such but I would also like to make it disappear when user clicks outside of it. Is there a way to do this in GWT? 回答1: You can enable PopupPanel auto hide. When enabled, the popup will be automatically hidden when the user clicks outside of it. 来源: https://stackoverflow.com/questions/6090270/gwt-dispose-modal-dialog-by-clicking-outside-of-it

Workaround for overflow restriction affecting fixed-positioned elements in iOS?

瘦欲@ 提交于 2019-12-13 16:17:31
问题 Edit: The main issue is this: overflow: hidden and overflow: auto affect fixed positioned elements in iOS. So if I have a fixed positioned modal dialog in a component within a scrolling feature of the page, that element is not displayed wherever it exceeds the bounds of its parent. This is really messed up, as it's not how fixed positioning works on any other system. So what's the official response to this? Original post: I have a modal dialog that works fine on desktop and Android, but on