<aclass="urlfilter"href="city=NY"data-target=".block"> Use AJAX to load ?city=NY into .block</a>
<aclass="urlfilter"href="?city=NY"data-target=".block"> Use AJAX to load ?city=NY into .block</a>
<divclass="block"src="?country=US"></div>
<divclass="block"src="?country=US"></div>
<script>
<script>
$('body').urlfilter()// Activate all the .urlfilter elements above
$('body').urlfilter()// Activate all the .urlfilter elements above
...
@@ -160,8 +160,11 @@ Highlight containers use these attributes:
...
@@ -160,8 +160,11 @@ Highlight containers use these attributes:
## datafilter
## datafilter
`g1.datafilter(data, filters)` returns the filtered data based on the filters. While urlfilter on [$.formhandler](#formhandler) applies filtering on data server side, `datafilter` applies urlfilter on frontend loaded data.
`g1.datafiilter(data, filters)` returns the filtered data based on the filters. For example:
`g1.datafilter(data, filters)` returns the filtered data based on the filters. While urlfilter on [$.formhandler](#formhandler) applies filtering on data server side, `datafilter` applies urlfilter on frontend loaded data.