Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UIOptions must extends UIEvents #256

Closed
SowingSadness opened this issue Feb 6, 2013 · 1 comment · May be fixed by brandingfuture/DefinitelyTyped#44
Closed

UIOptions must extends UIEvents #256

SowingSadness opened this issue Feb 6, 2013 · 1 comment · May be fixed by brandingfuture/DefinitelyTyped#44

Comments

@SowingSadness
Copy link

Example:

var options: SortableOptions = {};
options.start = <SortableEvent>(event: jQueryObjectEvent, ui: SortableUIParams) 
{
     //..
}
$(this.dom).sortable(options);

At the current moment SortableOptions dosen't have SortableEvents properties and i cant use these in option object.

Today i use this spike:

var options: SortableOptions = {
                connectWith: "ul"
};
(<SortableEvents>options).stop = (event: JQueryEventObject, ui: SortableUIParams) => {
   /...
} 
$("li").sortable(options);
@zacnomore
Copy link
Contributor

zacnomore commented Mar 11, 2020

Looks like this has been fixed: 5639237

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants