II have an modal popup control in my applications.I would like to know how to apply css in attached format.
<SfDialog CssClass="mdl-dialog" IsModal="true">
. . . </SfDialog> |
.mdl-dialog {
border : 1px solid red;
}
.e-dlg-overlay {
background-color: gray; } |
Thanks for quick support
I have an below clarification in sfDialogu
1.I would like to remove close button and add two button in right side of the header (refer example code)
2.I would like to reduce the height of "Header"
Screencast:
https://www.screencast.com/t/2hxqD8UCX
<SfDialog Target="#target" Width="500px" ShowCloseIcon="false" CssClass="mdl-dialog" IsModal="true" @bind-Visible="Visibility">
<DialogTemplates>
<Header>
Dialog Header
<div class="btn-parent">
<SfButton CssClass="e-small">
Btn 1
</SfButton>
<SfButton CssClass="e-small">Btn 2</SfButton>
</div>
</Header>
</DialogTemplates> </SfDialog><style>
.e-dialog .e-dlg-header-content .e-dlg-header {
width: 100%;
} .btn-parent {
float: right;
} .e-dialog .e-dlg-header-content {
padding: 4px 18px 5px 18px;
} </style> |
Thanks working fine.
but why flex property not working as per my previous example ??
I have another requirement in popup dialog
I need to show popup dialogue in right side .
please check below screen cast.
https://www.screencast.com/t/3pPhmHk40
<SfDialog @ref="DialogObj" Height="100%" Width="50%" ShowCloseIcon="true" @bind-Visible="Visibility">
<DialogAnimationSettings Effect="@animationEffect"></DialogAnimationSettings>
<DialogPositionData X="@Xvalue" Y="@Yvalue"></DialogPositionData>
<DialogTemplates>
. . .
</DialogTemplates>
<DialogButtons>
<DialogButton IsPrimary="true" Content="<a id='newTab' rel='nofollow' href='https://www.syncfusion.com/company/about-us' target='_blank'>Learn More</a>" OnClick="@OnBtnClick" />
</DialogButtons> </SfDialog>@code {
SfDialog DialogObj;
DialogEffect animationEffect { get; set; } = DialogEffect.SlideRight;
private string Xvalue = "right";
private string Yvalue = "center";
private bool Visibility { get; set; } = false;
private async Task OnBtnClick()
{
Visibility = true;
} } |
thanks but it should be full right side and
there should not be any gap in top and bottom
which I shared video
https://www.screencast.com/t/3jfOEFT3xCi
.e-dialog.e-popup.e-control.e-popup-open {
max-height: 100% !important;
top: 0px !important; } |
I have write below css to customize popoup Dialog but it overwrite for other popup like grid popup etc.Please advise how to avoid this.
.e-dialog {
max-height: 98%;
max-width: 100%;
min-width: 70%;
position: absolute;
}
.e-popup {
height: 70%;
position: absolute;
width: auto;
z-index: 1000;
}
<SfDialog ID="syncfusionDialog" />
<style>
#syncfusionDialog.e-dialog {
max-height: 98%;
max-width: 100%;
min-width: 70%;
position: absolute;
}
#syncfusionDialog.e-popup {
height: 70%;
position: absolute;
width: auto;
z-index: 1000;
}
</style> |
The below css not working.I need to show popup with full right side,
css:-
e-dialog.e-popup.e-control.e-popup-open {
}
screecast:-
https://www.screencast.com/t/lT1OFWOC6xX