SmartAdmin WebApp comes with integrated and customized styles for PaceJS plugin. PaceJS in short, improves usability from an user's point of view
Methods
Methods
|
Description
|
Pace.start
|
Show the progress bar and start updating. Called automatically if you don't use AMD or CommonJS.
|
Pace.restart
|
Show the progress bar if it's hidden and start reporting the progress from scratch.
|
Pace.stop
|
Hide the progress bar and stop updating it
|
Pace.track
|
Explicitly track one or more requests, see Tracking below
|
Pace.ignore
|
Expliticly ignore one or more requests, see Tracking below
|
Configuration
Pace is fully automatic, no configuration is necessary to get started. If you would like to make some tweaks, here's how. You can set window.paceOptions
before bringing in the file:
paceOptions = {
// Disable the 'elements' source
elements: false,
// Only show the progress on regular and ajax-y page navigation,
// not every request
restartOnRequestAfter: false
}
You can also put options on the script tag
<script data-pace-options='{ "ajax": false }' src='pace.js'></script>