Ejemplo n.º 1
0
layout = html.Div(children=[
    html.Div(id="loadingDiv",
             className="text-center",
             children=[html.Img(src="/static/images/loading.gif")]),
    dcc.Location(id="url"),
    dcc.Interval(id="interval", n_intervals=0, disabled=True),
    html.Div(
        id="dashDiv",
        style={"display": "none"},
        children=[
            html.Div(
                children=[refreshButton.layout(),
                          refreshInterval.layout()]),
            html.Br(),
            collapseExpand.layout([eventFrameGroupDropdown.layout()]),
            dcc.Tabs(id="tabs"),
            eventFrameTemplateViewDropdown.layout(),
            html.Div(className="well",
                     children=[
                         dash_table.DataTable(
                             id="table",
                             cell_selectable=False,
                             filter_action="native",
                             sort_action="native",
                             sort_mode="multi",
                             style_cell={
                                 "whiteSpace": "normal",
                                 "height": "auto",
                                 "textAlign": "left"
                             },
Ejemplo n.º 2
0
          className="text-center",
          children=[html.Img(src="/static/images/loading.gif")]),
 dcc.Location(id="url"),
 dcc.Interval(id="interval", n_intervals=0, disabled=True),
 html.Div(id="dashDiv",
          style={"display": "none"},
          children=[
              timeRangePicker.layout(),
              dcc.Checklist(id="activeOnlyChecklist",
                            options=[{
                                "label": " Active Only?",
                                "value": 1
                            }]),
              collapseExpand.layout([
                  enterpriseDropdown.layout(),
                  siteDropdown.layout(),
                  elementTemplatesDropdown.layout(),
                  eventFrameTemplatesDropdown.layout()
              ]),
              dcc.Tabs(id="tabs"),
              dcc.Store(id="eventFrameTemplateDropdown"),
              eventFrameTemplateViewDropdown.layout(),
              html.Div(className="well",
                       children=[
                           dash_table.DataTable(id="table",
                                                cell_selectable=False,
                                                filter_action="native",
                                                sort_action="native",
                                                sort_mode="multi",
                                                style_cell={
                                                    "whiteSpace": "normal",
                                                    "height": "auto",
Ejemplo n.º 3
0
import dash_core_components as dcc
import dash_html_components as html
from app.dashes.components import areasDropdown, collapseExpand, enterprisesDropdown, sitesDropdown, tagsDropdown, timeRangePicker

layout = html.Div(children=[
    html.Div(id="loadingDiv",
             className="text-center",
             children=[html.Img(src="/static/images/loading.gif")]),
    dcc.Location(id="url"),
    dcc.Interval(id="interval", n_intervals=0, disabled=True),
    html.Div(id="dashDiv",
             style={"display": "none"},
             children=[
                 timeRangePicker.layout(),
                 html.Br(),
                 collapseExpand.layout([
                     enterprisesDropdown.layout(),
                     sitesDropdown.layout(),
                     areasDropdown.layout(),
                     tagsDropdown.layout()
                 ]),
                 html.Div(children=[dcc.Graph(id="graph")])
             ])
])