Skip to content

Widget Factory duplicated page on plugins #636

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

Merged
merged 3 commits into from
Apr 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions order.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,7 @@
"plugins": [
"finding-evaluating-plugins",
"basic-plugin-creation",
"advanced-plugin-concepts",
"stateful-plugins-with-widget-factory"
"advanced-plugin-concepts"
]
},
{
Expand Down
6 changes: 6 additions & 0 deletions page/plugins.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,9 @@ A jQuery plugin is simply a new method that we use to extend jQuery's prototype
The idea of a plugin is to do something with a collection of elements. You could consider each method that comes with the jQuery core a plugin, like `.fadeOut()` or `.addClass()`.

You can make your own plugins and use them privately in your code or you can release them into the wild. There are thousands of jQuery plugins available online. The barrier to creating a plugin of your own is so low that you'll want to do it straight away!

While most existing jQuery plugins are stateless – that is, we call them on an element and that is the extent of our interaction with the plugin – there's a large set of functionality that doesn't fit into the basic plugin pattern.

In order to fill this gap, jQuery UI has implemented a more advanced plugin system. The new system manages state, allows multiple functions to be exposed via a single plugin, and provides various extension points. This system is called the Widget Factory and is exposed as `jQuery.widget` as part of jQuery UI 1.8; however, it can be used independently of jQuery UI.

For details on the capabilities of the Widget Factory, see this [How To Use the Widget Factory](/jquery-ui/widget-factory/how-to-use-the-widget-factory/).
300 changes: 0 additions & 300 deletions page/plugins/stateful-plugins-with-widget-factory.md

This file was deleted.