Embedded components are custom-built web components that integrate with your Navexa portfolio to display your true performance on your blog or website.

Component Types

Navexa currently provides three types of Components.

Each component has several configuration and customisation properties, detailed in this document.

Portfolio Component

Portfolio

Settings:

Notes:

** = Premium publisher feature. Only available upon special request

Chart

Chart

Settings:

Notes:

** = Premium feature. Only available to paying customers

Trade Component

Trade

Settings

Notes:

** = Premium feature. Only available to paying customers

Customizing Styles

You might want to change the Embedded Component’s styling to match your blog or website. Easy - the components are extremely customisable.

Warning: Although it possible to hide the Navexa logo, any attempts to modify, obstruct or restrict visibility or interactivity are prohibited. Violations of these terms will result in restriction and possible termination of components and other published media provided by Navexa.

Wordpress Steps

  1. Navigate to the page where you plan to embed your component
  2. Create an HTML block wordpress html block
  3. Create a special style tag
    • Note: You should only need to create the style tag ONCE PER PAGE. Only the first will be used by each embedded component per page.
  4. Enter your html embed code
  5. Customize the styles according to the following per-component style-guide below.

Example:

<style id="nvx-styles">
</style>

HTML Steps

  1. Navigate to the html document you plan to embed your component
  2. Create a style tag at the head of your blog/ website, with a tag of class="nvx-styles".
  3. Embed your custom component
  4. Customize the styles according to the following per-component style-guide below.

Example:

<!DOCTYPE html>
<html lang="en">
<head>
    <title>My Portfolio Blog</title>
    <style class="nvx-styles">
        <!-- my styles -->
    </style>
</head>
<body>
    <!-- my chart component -->
    <div id="xxxxxxxx-3A35-4F9B-8C6C-yyyyyyyyyyyy">
        <script async src="https://embd.navexa.io/nx-chart.js" charset="UTF-8"></script>
    </div>
</body>
</html>

CSS Styles

Each component primarily uses css variables to customise the theme. Each of the variables following can be used to style and decorate the portfolio component: The variables need to be defined in a main element to be correctly set.

<style class="nvx-styles">
main {
    /* My styles */
}
</style>

Portfolio Styles

main {
    /* Changes the width of the component */
    --nx-width: 600px;
    /* Only used for special publisher components */
    --nx-publisher-max-width: 850px;
    /* Changes the maximum height of the holdings list table */
    --nx-holdings-height: 300px;
    /* Changes the font attributes */
    --nx-font-family: Arial, serif;
    --nx-font-size: 1rem;
    --nx-font-weight: normal;
    /* Changes the component border radius */
    --nx-border-radius: 5px;

    /* The various colour swatches used over the component */
    --nx-green: #22b922;
    --nx-red: #ff0319;
    --nx-grey: #7e8e9f;
    --nx-card: white;
    --nx-text: #333;
    --nx-background: #f4f8fb;
    --nx-border: #e7e7e7;
    --nx-detail: #fbfbfb;
}

Chart Styles

main {
    /* Changes various font attributes */
    --nx-font-family: Arial, serif;
    --nx-font-size: 0.875rem;
    --nx-font-weight: normal;
    --nx-border-radius: 5px;

    /* The various colour swatches used over the component */
    --nx-green: #22b922;
    --nx-red: #ff0319;
    --nx-grey: #7e8e9f;
    --nx-card: white;
    --nx-text: #333;
    --nx-background: #f4f8fb;
    --nx-border: #e7e7e7;
}

Trades Styles

main {
    /* Changes the width of the component */
    --nx-width: 600px;
    /* Changes font attributes */    
    --nx-font-family: Arial, serif;
    --nx-font-size: 0.875rem;
    --nx-font-weight: normal;
    --nx-border-radius: 5px;

    /* The various colour swatches used over the component */
    --nx-green: #22b922;
    --nx-red: #ff0319;
    --nx-grey: #7e8e9f;
    --nx-card: white;
    --nx-text: #333;
    --nx-background: #f4f8fb;
    --nx-border: #e7e7e7;
}