Trait script::dom::bindings::codegen::Bindings::DataTransferItemListBinding::DataTransferItemList_Binding::DataTransferItemListMethods
source · pub trait DataTransferItemListMethods<D: DomTypes> {
// Required methods
fn Length(&self) -> u32;
fn Add(
&self,
data: DOMString,
type_: DOMString,
) -> Result<Option<Root<Dom<DataTransferItem>>>, Error>;
fn Add_(
&self,
data: &File,
) -> Result<Option<Root<Dom<DataTransferItem>>>, Error>;
fn Remove(&self, index: u32) -> Result<(), Error>;
fn Clear(&self);
fn IndexedGetter(&self, index: u32) -> Option<Root<Dom<DataTransferItem>>>;
}