foam-framework / foam

Feature-Oriented Active Modeller
Apache License 2.0
787 stars 55 forks source link

Allow for in-lined Sub-Model definitions in Property view: #348

Open kgrgreer opened 9 years ago

kgrgreer commented 9 years ago

Currently, when defining a property view:, you can use the factory format: view: { factory: 'foam.ui.SomeView', param1: value1, ... }

But if you try to refer to this.something or some.package.CONSTANT then it doesn't work because 'this' isn't defined yet and the package may or may not be defined yet.

Instead, allow for the creation of in-lined models.

Ex. view: { extendsMode: 'foam.ui.SomeView', properties: [ ... ] }

Then, if it needs values from 'this', it can get them from the export/import features.