Skip to content

Commit

Permalink
Adding auto-accept? to readme #17
Browse files Browse the repository at this point in the history
  • Loading branch information
oliyh committed Mar 6, 2020
1 parent f57d5fc commit 4e492d8
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,13 @@ Combine lessons into tutorials and attach them to views:
```clojure
(def checkout
(re-learn/with-tutorial
{:id :checkout-tutorial
:name "The checkout"
:description "Review your basket, check the price and confirm your purchase"
:precedence 1 ;; optional, allows some tutorials to take precedence over others
{:id :checkout-tutorial
:name "The checkout"
:description "Review your basket, check the price and confirm your purchase"
:precedence 1 ;; optional, allows some tutorials to take precedence over others
:auto-accept? false ;; optional, defaults to false
;; when true will start the tutorial immediately when this component is rendered
;; when false will display a snackbar indicating that a tutorial is available
:lessons [{:id :welcome-lesson ;; this is an inline lesson, not attached to anything
:description "Welcome to the re-learn example"}
basket
Expand Down

0 comments on commit 4e492d8

Please sign in to comment.