Merge pull request #33324 from joechrisman/master

Isotope-Layout: Added isotope method with no parameters (arrange)
This commit is contained in:
Jesse Trinity
2019-02-25 16:58:29 -08:00
committed by GitHub
2 changed files with 5 additions and 0 deletions
+4
View File
@@ -284,6 +284,10 @@ declare global {
* Get the Isotope instance from a jQuery object. Isotope instances are useful to access Isotope properties.
*/
data(methodName: 'isotope'): Isotope;
/**
* Filters, sorts, and lays out items.
*/
isotope(): JQuery;
/**
* Lays out specified items.
* @param elements Array of Isotope.Items
@@ -81,6 +81,7 @@ $grid = $('.grid').isotope({
});
// test methods using jquery
$grid.isotope();
$grid.isotope('addItems', $('.items'));
$grid.isotope('appended', $('.items')[0]);
$grid.isotope('hideItemElements', [ new HTMLElement() ]);