pub fn dialog_close_button(ui: &mut Ui) -> ResponseExpand description
Render a dialog close button: an IconButton with the close icon.
Returns the click [Response].
ยงExample
use egui_charts::tokens::DESIGN_TOKENS;
use egui_charts::ui_kit::buttons::dialog_close_button;
ui.with_layout(egui::Layout::right_to_left(egui::Align::Center), |ui| {
ui.add_space(DESIGN_TOKENS.spacing.sm);
if dialog_close_button(ui).clicked() {
// close the dialog
}
});