def load_app(app): """ Callback loading given app into the appropriate :class:`Div` class instance. Parameters ---------- app : unicode App path. Returns ------- Div :class:`Div` class instance of the app layout. """ if app == app_1.APP_PATH: return app_1.LAYOUT elif app == app_2.APP_PATH: return app_2.LAYOUT else: return Div([ P([ 'Various colour science ', A('Dash', href='https://dash.plot.ly/', target='_blank'), ' apps built on top of \n', A('Colour', href='https://github.com/colour-science/colour', target='_blank'), '.' ]), H3([ Link(app_1.APP_NAME, href=app_1.APP_PATH, className='app-link') ]), Markdown(app_1.APP_DESCRIPTION.replace('This app c', 'C')), H3([ Link(app_2.APP_NAME, href=app_2.APP_PATH, className='app-link') ]), Markdown(app_2.APP_DESCRIPTION.replace('This app c', 'C')), ])
def html_instruction_list(self) -> typing.List: return [ H1("BET ETF Calculator"), Ul( [ Li("Andrei Răduță"), Li("*****@*****.**"), Li( Link( children="https://github.com/andreiraduta11/bet-etf", href="https://github.com/andreiraduta11/bet-etf", ) ), ] ), H2("Instructions:"), Ol( [ Li("Set the size of the list of symbols."), Li("Set the sum you are going to invest."), Li("Set the specific transaction fee for your grid."), Li( [ "Set your current holdings for each symbol ", I("(no information is stored)."), ] ), Li( ( "The buying price is the last price (at the specified " "time). Feel free to change it." ) ), Li("Place your orders. The order values should be the same."), ] ), I(id="symbols_time"), ]
from dash_core_components import Link from dash_html_components import Br, Div, H1, H3 from app import url_base_pathname from modules.utils import colors layout = Div([ # title H1( children='publisher-dash', style={ 'textAlign': 'center', 'color': colors['text'] } ), # subtitle H3( children='Index', style={ 'textAlign': 'center', 'color': colors['text'] } ), # Link('Scene', href=f'{url_base_pathname}/scene'), Br(), Link('Publisher', href=f'{url_base_pathname}/publisher') ])
' using the given *Chromatic Adaptation Transform*.') """ App description. APP_DESCRIPTION : unicode """ APP_UID = hash(APP_NAME) """ App unique id. APP_UID : unicode """ LAYOUT = Div([ H3([Link(APP_NAME, href=APP_PATH)], className='text-center'), Div([ Markdown(APP_DESCRIPTION), H5(children='Colourspace'), Dropdown(id='colourspace-{0}'.format(APP_UID), options=RGB_COLOURSPACES_OPTIONS, value=RGB_COLOURSPACES_OPTIONS[0]['value'], clearable=False, className='app-widget'), H5(children='Illuminant'), Dropdown(id='illuminant-{0}'.format(APP_UID), options=ILLUMINANTS_OPTIONS, value=ILLUMINANTS_OPTIONS[0]['value'], clearable=False, className='app-widget'), H5(children='Chromatic Adaptation Transform'),
from dash_core_components import Link from dash_html_components import Br, Div, H1, H3 from app import url_base_pathname from modules.utils import colors layout = Div([ # title H1(children='catalog-dash', style={ 'textAlign': 'center', 'color': colors['text'] }), # subtitle H3(children='Index', style={ 'textAlign': 'center', 'color': colors['text'] }), Link('Scene', href='{}/scene'.format(url_base_pathname)), Br(), Link('Download', href='{}/download'.format(url_base_pathname)) ])