Skip to content
This repository has been archived by the owner on Apr 24, 2020. It is now read-only.

Commit

Permalink
added component card documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
alidcast committed Jun 30, 2017
1 parent 5a43271 commit 715b671
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,11 +203,11 @@ serializer function, before passing it to the editor as a card option:
import Mobiledoc from "vue-mobiledoc-editor"
import example from 'components/cards/example.vue'
const exCard = compToCard(example)
export default {
data () {
cards: [exCard],
cards: [
compToCard(example)
],
components: {
Editor: Mobiledoc.Editor,
Btn: Mobiledoc.Btn
Expand All @@ -221,8 +221,8 @@ Please note that your card must have a name to identify it. So if your component

The following mobiledoc-specific properties are passed to the component:

- env, an object of that holds environment-specific properties
- payload, an object that holds the data payload retrieved from the mobiledoc for this card
- `env`, an object of that holds environment-specific properties
- `payload`, an object that holds the data payload retrieved from the mobiledoc for this card

For more details on the API for authoring cards in vanilla JavaScript, as welll as the `env` properties available to the card, see [CARDS.md](https://github.com/bustlelabs/mobiledoc-kit/blob/master/CARDS.md).

Expand Down

0 comments on commit 715b671

Please sign in to comment.