New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

webmotors-webwidgets

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webmotors-webwidgets

Component Webmotors WebWidgets

1.0.2
latest
npm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Webmotors Cockpit WebWidgets

Instalando componente

Instale o componente webmotors-webwidgets

npm i webmotors-widgets

Usando o Componente

import WebWidgets from 'webmotors-webwidgets';

...

<WebWidgets
    name="Faturamento"
    url="/url-api"
    id={1}
    type={1}
/>

Props do componente

name (string)

Título que será exibido no Widget

url (string)

URL que chamará a Api do Obejto de dados do Widget

id (number)

ID do Widget

type (number)

Tipo do Gráfico que será renderizado

  • Barra

  • Linha

  • Indicador

  • Funil

  • Pizza

  • Velocímetro

  • BarraLinha

Retorno esperado no Cockpit

{
    "data": {
        "grafico": [
            { "titulo": "string", "valor": ["string"], "corTexto": "string", "corFundo": "string" },
            { "titulo": "string", "valor": ["string"], "corTexto": "string", "corFundo": "string" },
        ],
        "descricao": ["string"],
        "infoExtra": [
             { "valor": 99, "texto": "string", "porcentagem": 99 },
             { "valor": 99, "texto": "string", "porcentagem": 99 },
             { "valor": 99, "texto": "string", "porcentagem": 99 }
        ],
        "link": "string",
        "icone": {
            "svg": "string",
            "png": "string"
        },
        "escuro": true,
        "vertical": true
    },
    "status": 200,
    "success": true
}

Keywords

webmotors

FAQs

Package last updated on 05 Jun 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts