stdweb 0.4.14

A standard library for the client-side Web
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use webcore::value::Reference;
use webapi::event::{IEvent, Event};

/// The `slotchange` event is fired on an HTMLSlotElement instance
/// (`<slot>` element) when the node(s) contained in that slot change.
///
/// [(JavaScript docs)](https://developer.mozilla.org/en-US/docs/Web/Events/slotchange)
// https://dom.spec.whatwg.org/#mutation-observers
#[derive(Clone, Debug, PartialEq, Eq, ReferenceType)]
#[reference(instance_of = "Event")]
#[reference(event = "slotchange")]
#[reference(subclass_of(Event))]
pub struct SlotChangeEvent( Reference );

impl IEvent for SlotChangeEvent {}