react-user-guide icon indicating copy to clipboard operation
react-user-guide copied to clipboard

starting user guide trigger

Open aryeharmon opened this issue 3 years ago • 2 comments

how can i trigger the start of the user guide with an event?

aryeharmon avatar Mar 27 '22 16:03 aryeharmon

You should be able to do this.

export default class App extends Component {
  render () {
    if(!event) {
        return (
             <div style={style} className="unique-classname">Target element</div>
        );
    }
    return (
      <UserGuide buttonConfig={buttonConfig} guides={guides}>
        <div style={style} className="unique-classname">Target element</div>
      </UserGuide>
    )
  }
}

sandeshshrestha avatar Mar 27 '22 16:03 sandeshshrestha

i want some kind of trigger that i can call whenever, is a user wants to start is again, i guess i can clear the cookie or something, then do it this way, but seems to hacky, there is no way to call the start method?

aryeharmon avatar Mar 27 '22 18:03 aryeharmon