Skip to content

Latest commit

 

History

History
42 lines (31 loc) · 1.07 KB

README.md

File metadata and controls

42 lines (31 loc) · 1.07 KB

aurelia-entityinspector

An Aurelia ui component for viewing JavaScript values (plugin)

Enabling the plugin:

In your Aurelia bootstrapper module:

export function configure(aurelia) {
    aurelia.use
        .plugin("aurelia-entityinspector")
}

When using webpack with current Aurelia version, you need to use this syntax:

import { PLATFORM } from "aurelia-framework";

export function configure(aurelia) {
    aurelia.use
        .plugin(PLATFORM.moduleName("aurelia-entityinspector"))
}

Using the entityinspector ui component (custom element):

<jux-entityinspector value.bind="data"
                     accordionmode.bind="isAccordionMode"
                     theme="dark">

Bindable properties:

  • value (any type: Object, Array, Date, string, boolean, number etc.)
    -the entity to inspect

  • accordionmode (Optional; boolean)
    -when true, only one array or object can be expanded at the same level in the inspector.

  • theme (Optional; "dark" | "light")
    -the entityinspector theme