22 lines
365 B
Rust
22 lines
365 B
Rust
use dioxus_core::UiEvent;
|
|
|
|
pub type ClipboardEvent = UiEvent<ClipboardData>;
|
|
#[cfg_attr(feature = "serialize", derive(serde::Serialize, serde::Deserialize))]
|
|
#[derive(Debug, Clone)]
|
|
pub struct ClipboardData {
|
|
// DOMDataTransfer clipboardData
|
|
}
|
|
|
|
impl_event![
|
|
ClipboardData;
|
|
|
|
/// oncopy
|
|
oncopy
|
|
|
|
/// oncut
|
|
oncut
|
|
|
|
/// onpaste
|
|
onpaste
|
|
];
|