Lets see how to style af:dialog in oracle adf. We usually use dialog within a popup.
The default dialog without any style looks like below in alta skin
If you want to play with the styles of dialog to make it as a plain dialog without header and footer, you can use the component level selectors like below
af|dialog{
background-color: #454d54;
border:none ;
}
af|dialog::header-start,af|dialog::header-end,af|dialog::header,af|dialog::footer-start,af|dialog::footer-end,af|dialog::footer{
display:none;
}
af|dialog::content,af|dialog::content-start,af|dialog::content-end{
border-top:none;
}
you can use these selectors according to your need
with the above styles the dialog would look like below
In addition to the css above, i have updated few things in the jspx page to make it look better with buttons aligned and form aligned to the center along with some styles for the buttons (style for buttons can be found here button styles like bootstrap buttons)
Hope this helps someone, looking for a quick solution on styling af:dialog
The default dialog without any style looks like below in alta skin
If you want to play with the styles of dialog to make it as a plain dialog without header and footer, you can use the component level selectors like below
af|dialog{
background-color: #454d54;
border:none ;
}
af|dialog::header-start,af|dialog::header-end,af|dialog::header,af|dialog::footer-start,af|dialog::footer-end,af|dialog::footer{
display:none;
}
af|dialog::content,af|dialog::content-start,af|dialog::content-end{
border-top:none;
}
you can use these selectors according to your need
with the above styles the dialog would look like below
In addition to the css above, i have updated few things in the jspx page to make it look better with buttons aligned and form aligned to the center along with some styles for the buttons (style for buttons can be found here button styles like bootstrap buttons)
Hope this helps someone, looking for a quick solution on styling af:dialog
Comments
Post a Comment