Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to specify parameters to the Dialog component? #886

Closed
real-ashwin opened this issue Jun 18, 2015 · 5 comments
Closed

How to specify parameters to the Dialog component? #886

real-ashwin opened this issue Jun 18, 2015 · 5 comments
Labels
component: dialog This is the name of the generic UI component, not the React module!

Comments

@real-ashwin
Copy link

I am using this code below.

<Dialog
        title="Approve"
        ref="standardDialog"
        actions={standardActions}
        actionFocus="approve"
        modal={true}
        contentClassName={"approval_dialog"}
        contentStyle={{"paddingTop":"200px", "padding-top":"200px"}}
        contentInnerStyle={{"paddingTop":"200px", "padding-top":"200px"}}
        style={{"paddingTop":"200px", "padding-top":"200px"}}>
          <div className="text-muted">
            lorum ipsum
          </div>
      </Dialog>

modal={true} and modal={false} don't have any effect.
contentStyle, contentInnerStyle and style none of them apply style.

I think I am doing something wrong but I cannot figure out what it is.

Any help?

@hai-cea
Copy link
Member

hai-cea commented Jun 19, 2015

@ashwinputhige What's the problem you're seeing?

@real-ashwin
Copy link
Author

After going throught the example again, I changed my Dialog to below code :

var standardActions = [
      { text: 'Cancel' },
      { text: 'Approve', onClick: this.onApprove, ref: 'approve' }
    ];
<Dialog
          title="Title"
          ref="standardDialog"
          actions={standardActions}
          actionFocus="approve"
          modal={true}
          >
            <div >
              TEXT
            </div>
        </Dialog>

@hai-cea The issues I see are :

  1. Even with modal={true}, the links in the page under the Dialog are clickable.
  2. I cant figure out how to position the Dialog. Its always centered. How do I position it wherever I want - lets say 100px from the top?
  3. How do I style the "blackish" mask that the modal places on the page?

Thanks.

@jkruder
Copy link
Contributor

jkruder commented Jul 9, 2015

@ashwinputhige 1. is resolved by #1092

@real-ashwin
Copy link
Author

Thanks @jkruder

@shaurya947
Copy link
Contributor

@ashwinputhige see #1748 for ideas on how to accomplish 2

Not sure if you're still interested in 3. Let me know and I'll look into it. Closing for now..

@zannager zannager added the component: dialog This is the name of the generic UI component, not the React module! label Dec 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: dialog This is the name of the generic UI component, not the React module!
Projects
None yet
Development

No branches or pull requests

5 participants