Skip to content

v0.9.1

Latest
Compare
Choose a tag to compare
@panoply panoply released this 30 Aug 04:47
· 4 commits to master since this release
2e96f8e

Relapse v0.9.1

Changes

  • Wait until action has been taken before applying style="" properties.
  • Confirm instance exists before triggering relapse.reinit()

Breaking

  • The openCount instance reference has been renamed to opened

Fixes

  • Fixed the auto-collapsing bug occurring on last known folds when both persist and multiple were set to true.

Added new config method

Relapse now provides live reconfiguration alignments. Instances have access to an additional config() method which can be used for updating options on an existing relapse instance. When using this method, the current instance will adhere to new settings in real-time.

Refer to the Methods API for a more detailed breakdown.

import relapse from 'relapse';

const instance = relapse('#example', { 
   multiple: true, // we allow for multiple folds to be opened
   persist: false  // we do not require a single fold to persist
});

// Using the config method and passing the following would 
// result in all expanded folds to be closed as we set multiple to false
// and because we set persist to true, all but 1 fold will collapse.
//
instance.config({ 
   multiple: false, 
   persist: true 
})