Skip to content

Prefix event should be documented on website #47

@frediana

Description

@frediana

Hi,

The following widgets have an event prefix diferrent than the widget's name. This seems undocumented on the website and in my opinion should be.

ui/jquery.ui.draggable.js: widgetEventPrefix: "drag",
ui/jquery.ui.droppable.js: widgetEventPrefix: "drop",
ui/jquery.ui.resizable.js: widgetEventPrefix: "resize",
ui/jquery.ui.slider.js: widgetEventPrefix: "slide",
ui/jquery.ui.sortable.js: widgetEventPrefix: "sort",
ui/jquery.ui.spinner.js: widgetEventPrefix: "spin",

For example for the slider, how a user knows he have to bind on 'slidestop' event instead of 'sliderstop'.
Some other widgets doesn't use this widgetEventPrefix and widget's name is used as a prefix, this is confusing to me.

So maybe would be a good to have 'event prefix' section on each widget doc (on the event section)?

Just an idea..

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions