This commit is contained in:
Henry 2015-11-09 11:21:58 -08:00
parent bf39aa1b1d
commit 05f8739952
2 changed files with 97 additions and 93 deletions

View File

@ -1234,8 +1234,8 @@ A view's selection state is, conceptually, a set of JavaScript objects. The
presence of methods/properties on these objects determine which toolbar controls presence of methods/properties on these objects determine which toolbar controls
are visible, and what state they manage and/or behavior they invoke. are visible, and what state they manage and/or behavior they invoke.
This set may contain up to two different objects: The _view proxy _, which is This set may contain up to two different objects: The _view proxy_, which is
used to make changes to the view as a whole, and the _ selected object _, which is used to make changes to the view as a whole, and the _selected object_, which is
used to represent some state within the view. (Future versions of Open MCT Web used to represent some state within the view. (Future versions of Open MCT Web
may support multiple selected objects.) may support multiple selected objects.)

View File

@ -95,7 +95,7 @@ example/persistence.
"platform/features/scrolling", "platform/features/scrolling",
"platform/forms", "platform/forms",
"platform/persistence/queue", "platform/persistence/queue",
-- "platform/persistence/elastic", - "platform/persistence/elastic",
"platform/policy", "platform/policy",
"example/generator" "example/generator"
@ -105,7 +105,7 @@ __bundles.json__
#### Bundle After #### Bundle After
```diff ```diff
[ [
"platform/framework", "platform/framework",
"platform/core", "platform/core",
"platform/representation", "platform/representation",
@ -124,9 +124,9 @@ __bundles.json__
"platform/persistence/queue", "platform/persistence/queue",
"platform/policy", "platform/policy",
++ "example/persistence", + "example/persistence",
"example/generator" "example/generator"
] ]
``` ```
__bundles.json__ __bundles.json__
@ -184,20 +184,21 @@ We will create this file in the directory tutorials/todo (we can hereafter refer
to this plugin as tutorials/todo as well.) We will start with an “empty bundle”, to this plugin as tutorials/todo as well.) We will start with an “empty bundle”,
one which exposes no extensions - which looks like: one which exposes no extensions - which looks like:
{ ```diff
{
"name": "To-do Plugin", "name": "To-do Plugin",
"description": "Allows creating and editing to-do lists.", "description": "Allows creating and editing to-do lists.",
"extensions": { "extensions": {
} }
} }
```
__tutorials/todo/bundle.json__ __tutorials/todo/bundle.json__
We will also include this in our list of active bundles. We will also include this in our list of active bundles.
#### Before #### Before
[ [
"platform/framework", "platform/framework",
"platform/core", "platform/core",
"platform/representation", "platform/representation",
@ -222,7 +223,9 @@ We will also include this in our list of active bundles.
__bundles.json__ __bundles.json__
#### After #### After
[
```diff
[
"platform/framework", "platform/framework",
"platform/core", "platform/core",
"platform/representation", "platform/representation",
@ -244,9 +247,9 @@ __bundles.json__
"example/persistence", "example/persistence",
"example/generator", "example/generator",
++ "tutorials/todo" + "tutorials/todo"
] ]
```
__bundles.json__ __bundles.json__
At this point, we can reload Open MCT Web. We havent introduced any new At this point, we can reload Open MCT Web. We havent introduced any new
@ -269,22 +272,23 @@ deeper explanation of domain objects, see the Open MCT Web Developer Guide.)
In the case of our to-do list feature, the to-do list itself is the thing well In the case of our to-do list feature, the to-do list itself is the thing well
want users to be able to create and edit. So, we will add that as a new type in want users to be able to create and edit. So, we will add that as a new type in
our bundle definition: our bundle definition:
```diff
{ {
"name": "To-do Plugin", "name": "To-do Plugin",
"description": "Allows creating and editing to-do lists.", "description": "Allows creating and editing to-do lists.",
"extensions": { "extensions": {
++ "types": [ + "types": [
++ { + {
++ "key": "example.todo", + "key": "example.todo",
++ "name": "To-Do List", + "name": "To-Do List",
++ "glyph": "j", + "glyph": "j",
++ "description": "A list of things that need to be done.", + "description": "A list of things that need to be done.",
++ "features": ["creation"] + "features": ["creation"]
++ } + }
] ]
} }
} }
```
__tutorials/todo/bundle.json__ __tutorials/todo/bundle.json__
What have we done here? Weve stated that this bundle includes extensions of the What have we done here? Weve stated that this bundle includes extensions of the