UNPKG

siesta-lite

Version:

Stress-free JavaScript unit testing and functional testing tool, works in NodeJS and browsers

96 lines (69 loc) 2.77 kB
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>The source code</title> <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" /> <script type="text/javascript" src="../resources/prettify/prettify.js"></script> <style type="text/css"> .highlight { display: block; background-color: #ddd; } </style> <script type="text/javascript"> function highlight() { document.getElementById(location.hash.replace(/#/, "")).className = "highlight"; } </script> </head> <body onload="prettyPrint(); highlight();"> <pre class="prettyprint lang-js">/* Siesta 5.6.1 Copyright(c) 2009-2022 Bryntum AB https://bryntum.com/contact https://bryntum.com/products/siesta/license */ // !XXX when adding new methods to this mixing need to also update the // `setupLockableTree` method in the Sch.mixin.Lockable Ext.define(&quot;Sch.mixin.FilterableTreeView&quot;, { filterableTreeStore : null, treeStoreFilteringListeners : null, initTreeFiltering : function () { this.treeStoreFilteringListeners = { &#39;nodestore-datachange-start&#39; : this.onFilterChangeStart, &#39;nodestore-datachange-end&#39; : this.onFilterChangeEnd, &#39;filter-clear&#39; : this.onFilterCleared, &#39;filter-set&#39; : this.onFilterSet, &#39;forcedrefresh&#39; : this.onForcedRefresh, scope : this } var doInit = function () { var treeStore = this.up(&#39;tablepanel&#39;).store; this.bindFilterableTreeStore(treeStore) }; if (this.rendered) doInit.call(this); else this.on(&#39;beforerender&#39;, doInit, this, { single : true }); }, bindFilterableTreeStore : function (store) { if (this.filterableTreeStore) this.mun(this.filterableTreeStore, this.treeStoreFilteringListeners) this.filterableTreeStore = store if (store) this.mon(store, this.treeStoreFilteringListeners) }, onForcedRefresh : function () { this.focusRow = function () {} this.refresh() delete this.focusRow }, onFilterChangeStart : function () { Ext.suspendLayouts(); }, onFilterChangeEnd : function () { Ext.resumeLayouts(true); }, onFilterCleared : function () { }, onFilterSet : function () { } });</pre> </body> </html>