foam-framework / foam-framework/foam

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

Open
#348 0 comments 0 reactions 1 assignee Claimed by @kgrgreer View on GitHub
enhancement
Dominant language
JavaScript
Stars
783
Forks
51
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.