furo-config-loader

furo-config-loader #

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

summary load config files

furo-config-loader loads a configuration json in to the defined section.

To access the config values, use furo-config.

1
2
3
4
<furo-config-loader
    src="/custom/view-config.json"
    section="views"
    ></furo-config-loader>

Attributes and Properties #

src #

src String

File source

section #

section String

Targeted section to load the config in.

Events #

config-loaded #

at-config-loadedObject

Fired when the config is loaded with the loaded config as detail.

Methods #