c16be4d061
Add new function to merge query params into a given path Add a new ReportFilter component, which extracts the date picker & filter picker Add basic framework for product search Add new AdvancedFilter to filter options Remove duplicate CSS Use library function for merging new query+path Move filters folder out of reports Use filter constant Add README Add path & query helper functions Move filters into component folder Switch to getPath/getQuery helpers Update classes & merge styles Remove query/path from READMEs Add a readme to nav-utils |
||
---|---|---|
.. | ||
README.md | ||
index.js |
README.md
Nav Utils
This is a library of functions used in navigation.
getPath()
Get the current path from history.
getQuery()
Get the current query string, parsed into an object, from history.
getAdminLink( string: path )
JS version of admin_url
. Returns the full URL for a page in wp-admin.
getNewPath( object: query, string: path, object: currentQuery )
Return a URL with set query parameters. Optional path
, currentQuery
, both will default to the current value fetched from history
if not provided.
updateQueryString( object: query )
Updates the query parameters of the current page.