开发者

How to use jetpack.storage.setting in Jetpack SDK 0.9

开发者 https://www.devze.com 2023-01-29 15:03 出处:网络
When we use Jetpack 0.6, we could manifest something like this, var manifest = { settings: [ { name: \"foo\",

When we use Jetpack 0.6, we could manifest something like this,

var manifest = {
  settings: [
    {
      name: "foo",
      type: "group",
      label: "Twitter Account",
      settings: [
        { name: "twitterId", type: "text", label: "Username" },
    开发者_如何学编程    { name: "twitterPass", type: "password", label: "Password" }
      ]
    }
  ]
};

jetpack.future.import("storage.settings");

Does anyone know how to do same thing in Jetpack SDK 0.9.

Which module should I use?


the import has changed to something like: var simpleStorage = require("simple-storage");

see: https://jetpack.mozillalabs.com/sdk/0.9/docs/#module/addon-kit/simple-storage

0

精彩评论

暂无评论...
验证码 换一张
取 消