blob: 1593ba6ee89a70b013bcda7cf6ebcb388a50d670 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
import {V} from '#composite';
import Thing from '#thing';
import {exposeConstant} from '#composite/control-flow';
import {color, name, thingList} from '#composite/wiki-properties';
export class HomepageLayoutSection extends Thing {
static [Thing.friendlyName] = `Homepage Section`;
static [Thing.getPropertyDescriptors] = ({HomepageLayoutRow}) => ({
// Update & expose
name: name(V(`Unnamed Homepage Section`)),
color: color(),
rows: thingList(V(HomepageLayoutRow)),
// Expose only
isHomepageLayoutSection: exposeConstant(V(true)),
});
static [Thing.yamlDocumentSpec] = {
fields: {
'Section': {property: 'name'},
'Color': {property: 'color'},
},
};
}
|