filtering function passes HTMLElement argument

This commit is contained in:
SPWizard01
2019-02-01 16:38:36 +02:00
committed by GitHub
parent 4c070e0cf2
commit 3584299fcb
+2 -1
View File
@@ -2,6 +2,7 @@
// Project: http://isotope.metafizzy.co/
// Definitions by: Anže Videnič <https://github.com/avidenic>
// Mălin Brândușe <https://github.com/malinushj>
// SPWizard01 <https://github.com/SPWizard01>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
@@ -30,7 +31,7 @@ declare namespace Isotope {
* If set to a string, that value is used as a selector.
* If filter is set to a function, that function checks each item and returns true or false if the item should be shown or hidden.
*/
filter?: string | (() => boolean);
filter?: string | ((itemElement: HTMLElement) => boolean);
/**
* Items are arranged into rows. Rows progress vertically. Similar to what you would expect from a layout that uses CSS floats. fitRows works well for items that have the same height.
*/