furo-config

furo-config #

@furo/util v2.1.19
import '@furo/util/src/furo-config.js';
exports FuroConfig js
exports <furo-config> custom-element-definition
superclass LitElement

summary config access

furo-config

Access config data

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
<!-- set with config-loader -->
<furo-config-loader
    section="views"
    src="/viewconfig.json"
    ></furo-config>


<!-- consume a config -->
<furo-config
    section="views" at-config-updated="--conf"
    ></furo-config>

<!-- consume a sub path of a config section -->
<furo-config
    section="views.subset.deep" at-config-updated="--deepconf"
    ></furo-config>

Attributes and Properties #

section #

section String

section of the config object that you are interested in

access deep object with dots like main.sub.sub

config #

default: Config

The current section of the config, which was defined by section.

Events #

config-updated #

at-config-updatedconfig.section

Fired when section changed

Methods #