Namespace: Pjax

Pjax

Pjax is a static object with main function

Namespaces

Dom

Members

staticBarba.Pjax.cacheEnabledBoolean

Indicate wether or not use the cache
Default Value:
  • true
Class name used to ignore links
Default Value:
  • no-barba

static,readonlyBarba.Pjax.transitionProgressBoolean

Indicate if there is an animation in progress

Methods

staticBarba.Pjax.getCurrentUrl(){String}

Pjax/Pjax.js, line 109
Return the currentURL cleaned

staticBarba.Pjax.getTransition(){Barba.Transition}

Pjax/Pjax.js, line 289
Return a transition object
Returns:
object

staticBarba.Pjax.goTo(newUrl)

Pjax/Pjax.js, line 121
Change the URL with pushstate and trigger the state change
Name Type Description
newUrl String

staticBarba.Pjax.preventCheck(evt, element){Boolean}

Pjax/Pjax.js, line 239
Determine if the link should be followed
Name Type Description
evt MouseEvent
element HTMLElement

staticBarba.Pjax.start()

Pjax/Pjax.js, line 53
Function to be called to start Pjax