penguin-object-save
Save button that saves a copy in a global field (useful for objects in penguin.js).
Last updated 2 years ago by pa1nd .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install penguin-object-save 
SYNC missed versions from official npm registry.

penguin save-button

On the object page, use this component instead of the normal save button.

This makes it possible to access data from an object on another website. E.g. useful to show a list with all blog items.

Example usage

a.cms-btn.btn-save(data-component='SaveButton' data-props={
  field: "nameOfAGlobalField",
  keys: ["image", "name", "content", "url", "type", "startdate", "enddate"]
})

Donot forget to adjust your package.json:

{
  "penguin": {
    "globals": [
      "nameOfAGlobalField"
    ]
  }
}

Current Tags

  • 1.0.2                                ...           latest (2 years ago)

3 Versions

  • 1.0.2                                ...           2 years ago
  • 1.0.1                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 2
This Month 3
Last Day 2
Last Week 0
Last Month 10
Dependencies (6)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |