Skip to content

Commit f832967

Browse files
committed
also support OnSpill plugins
1 parent b674155 commit f832967

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/lib.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ enum CallbackId {
9797
Filter,
9898
Clone,
9999
Change,
100+
Spill,
100101
_Total,
101102
}
102103

@@ -205,6 +206,11 @@ impl Options {
205206

206207
// TODO: onMove
207208

209+
// RevertOnSpill / RemoveOnSpill plugins
210+
option!(revert_on_spill, "revertOnSpill", bool, from_bool);
211+
option!(remove_on_spill, "removeOnSpill", bool, from_bool);
212+
callback!(on_spill, "onSpill", Spill);
213+
208214
/// Recover the javascript options that are being built in this object
209215
///
210216
/// Note that you can set options on this object through `js_sys::Reflect`.

0 commit comments

Comments
 (0)