def get_div_for_tab(self): children_list = [ MyHTMLTabRecommenderHeaderTable().get_table(), MyHTML.div_with_dcc_drop_down( **self._dd_handler.get_drop_down_parameters(REDD.INDEX)), MyHTML.div_with_dcc_drop_down( **self._dd_handler.get_drop_down_parameters( REDD.PERIOD_AGGREGATION, default_value=self.sys_config.period_aggregation)), MyHTML.div_with_dcc_drop_down( **self._dd_handler.get_drop_down_parameters( REDD.REFRESH_INTERVAL)), MyHTML.div_with_dcc_drop_down( **self._dd_handler.get_drop_down_parameters( REDD.SECOND_GRAPH_RANGE)), MyHTML.div_with_dcc_drop_down( **self._dd_handler.get_drop_down_parameters(REDD.SCORING)), MyHTML.div_with_html_button_submit('my_recommender_refresh_button', 'Refresh', hidden=''), MyHTML.div_with_html_button_submit( 'my_recommender_active_manage_button', self.__get_position_manage_button_text__()), MyHTML.div_with_table(self._data_table_div, self.__get_table_for_recommender__()), MyHTML.div('my_graph_recommender_position_div'), MyHTML.div('my_graph_recommender_position_second_div') ] return MyHTML.div('my_recommender_div', children_list)
def get_div_for_tab(self): children_list = [ MyHTMLTabPortfolioHeaderTable().get_table(), MyHTML.div_with_dcc_drop_down( **self._dd_handler.get_drop_down_parameters( PODD.PERIOD_AGGREGATION, default_value=self.sys_config.period_aggregation)), MyHTML.div_with_dcc_drop_down( **self._dd_handler.get_drop_down_parameters( PODD.REFRESH_INTERVAL, default_value=900)), MyHTML.div_with_dcc_drop_down( **self._dd_handler.get_drop_down_parameters( PODD.SECOND_GRAPH_RANGE)), MyHTML.div_with_dcc_drop_down( **self._dd_handler.get_drop_down_parameters(PODD.INDICATOR)), MyHTML.div_with_button( **self._button_handler.get_button_parameters( PFBTN.RESET_PORTFOLIO_SELECTION)), MyHTML.div_with_html_button_submit('my_portfolio_refresh_button', 'Refresh'), MyHTML.div_with_html_button_submit( 'my_portfolio_active_manage_button', self.__get_position_manage_button_text__()), MyHTML.div_with_table(self._data_table_div, self.__get_table_for_portfolio__()), MyHTML.div('my_graph_portfolio_position_div'), MyHTML.div('my_graph_portfolio_position_second_div') ] return MyHTML.div('my_portfolio_div', children_list)
def get_div_for_tab(self): children_list = [ MyHTML.div_with_html_button_submit('my_switch_trading_mode_button', self.__get_switch_mode_button_text__(), hidden=''), MyHTML.div_with_dcc_drop_down(**self._dd_handler.get_drop_down_parameters(CDD.ORDER_MAXIMUM)), MyHTML.div_with_dcc_drop_down(**self._dd_handler.get_drop_down_parameters(CDD.SOUND_MACHINE)), MyHTML.div_with_dcc_drop_down(**self._dd_handler.get_drop_down_parameters(CDD.SMALL_PROFIT)), MyHTML.div_with_html_button_submit('my_reset_total_result_button', self.__get_reset_total_result_button_text__(), hidden=''), self.get_div_for_tables() ] return MyHTML.div('my_configuration_div', children_list)
def get_div_for_tab(self): children_list = [ self._header_table.get_table(), MyHTML.div_with_input(element_id=self._my_sales_filter_input, placeholder='Please enter filter for my sales...', size=500, height=27), MyHTML.div_with_button_link(self._my_sales_link, href='', title='', hidden='hidden'), MyHTML.div_with_html_button_submit(self._my_sales_show_detail_button, children='Details', hidden='hidden'), MyHTML.div_with_html_button_submit(self._my_sales_reset_button, children='Reset', hidden='hidden'), MyHTML.div_with_table(self._data_table_div, self.__get_sale_grid_table__()), MyDCC.markdown(self._my_sales_sale_entry_markdown), MyHTML.div_with_dcc_drop_down(**self._dd_handler.get_drop_down_parameters(SLDD.SALE_ENTITIES)), MyHTML.div(self._my_sales_regression_chart, self.__get_sales_regression_chart__(), inline=False), MyHTML.div_with_button_link(self._my_sales_similar_sale_link, href='', title='', hidden='hidden'), MyHTML.div_with_table(self._my_sales_similar_sale_grid_table_div, self.__get_similar_sale_grid_table__('')), MyDCC.markdown(self._my_sales_similar_sale_entry_markdown), ] return MyHTML.div(self._my_sales_div, children_list)
def _init_cells_for_search_by_database_entries__(self): input_label_div = MyHTML.div(self.my_search_db_label_div, 'Search by database:', True) drop_down = MyHTML.div_with_dcc_drop_down( **self._dd_handler.get_drop_down_parameters(SRDD.SEARCH_DATABASE)), button_search = MyHTML.div_with_html_button_submit( self.my_search_db_button, 'Search', hidden='') self.set_value(2, 1, input_label_div) self.set_value(2, 2, drop_down) self.set_value(2, 3, button_search)
def _init_cells_for_search_by_input__(self): input_label_div = MyHTML.div(self.my_search_input_label_div, 'Search input:', True) input_field = MyHTML.div_with_textarea( element_id=self.my_search_input, placeholder='Please enter search string...', size=650, height=50) button_search = MyHTML.div_with_html_button_submit( self.my_search_button, 'Search', hidden='') self.set_value(1, 1, input_label_div) self.set_value(1, 2, input_field) self.set_value(1, 3, button_search)
def get_div_for_tab(self): # print('MyHTMLHeaderTable.get_table={}'.format(MyHTMLHeaderTable().get_table())) li = [MyHTMLTabPatternHeaderTable().get_table()] li.append(MyHTML.div_with_dcc_drop_down(**self._dd_handler.get_drop_down_parameters(PDD.INDEX))), li.append(MyHTML.div_with_dcc_drop_down(**self._dd_handler.get_drop_down_parameters(PDD.STOCK_SYMBOL))) li.append(MyHTML.div_with_dcc_drop_down(**self._dd_handler.get_drop_down_parameters( PDD.PERIOD_AGGREGATION, default_value=self.sys_config.period_aggregation))) li.append(MyHTML.div_with_dcc_drop_down(**self._dd_handler.get_drop_down_parameters(PDD.REFRESH_INTERVAL))) li.append(MyHTML.div_with_dcc_drop_down(**self._dd_handler.get_drop_down_parameters(PDD.SECOND_GRAPH_RANGE))) if self.sys_config.from_db: li.append(self.__get_html_div_with_date_picker_range__()) li.append(MyHTML.div_with_html_button_submit('my_refresh_button', 'Refresh')) li.append(MyHTML.div('my_graph_first_div')) li.append(MyHTML.div('my_graph_second_div')) li.append(MyHTML.div('my_graphs_before_breakout_div')) # li.append(MyHTML.div_embedded('my_graphs_before_breakout_div')) li.append(MyHTML.div_with_html_pre('my_hover_data')) return MyHTML.div('', li)
def get_div_for_tab(self): children_list = [ MyHTMLTabLogHeaderTable().get_table(), MyHTML.div_with_dcc_drop_down( **self._dd_handler.get_drop_down_parameters( LOGDD.LOG_TYPE, default_value=self._selected_log_type)), MyHTML.div_with_dcc_drop_down( **self._dd_handler.get_drop_down_parameters(LOGDD.PROCESS)), MyHTML.div_with_dcc_drop_down( **self._dd_handler.get_drop_down_parameters( LOGDD.PROCESS_STEP)), MyHTML.div_with_dcc_drop_down( **self._dd_handler.get_drop_down_parameters(LOGDD.DATE_RANGE)), MyHTML.div_with_html_button_submit(self._my_log_refresh_button, 'Refresh', hidden=''), MyHTML.div_with_table(self._data_table_div, self.__get_table_for_log__()), MyDCC.markdown(self._my_log_entry_markdown) ] return MyHTML.div('my_log_div', children_list)
def get_div_for_tab(self): children_list = [ self._header_table.get_table(), MyHTML.div_with_dcc_drop_down( **self._dd_handler.get_drop_down_parameters( SRDD.SEARCH_SOURCE)), MyHTML.div_with_dcc_drop_down( **self._dd_handler.get_drop_down_parameters( SRDD.SEARCH_REGION)), MyHTML.div_with_dcc_drop_down( **self._dd_handler.get_drop_down_parameters( SRDD.SEARCH_CATEGORY)), MyHTML.div_with_dcc_drop_down( **self._dd_handler.get_drop_down_parameters( SRDD.SEARCH_SUB_CATEGORY)), MyHTML.div_with_html_button_submit( self._elements.my_search_refresh_button, children='Refresh', hidden=''), MyHTML.div_with_html_element( self._elements.my_search_online_input_table, self._search_online_input_table.get_table()), MyDCC.markdown(self._elements.my_search_input_markdown), MyHTML.div_with_dcc_drop_down( **self._dd_handler.get_drop_down_parameters( SRDD.SEARCH_ENTITIES)), MyHTML.div_with_button_link( self._elements.my_search_result_entry_link, href='', title='', hidden='hidden'), MyDCC.markdown(self._elements.my_search_test_markdown), MyHTML.div_with_table( self._elements.my_search_result_grid_table_div, ''), MyDCC.markdown(self._elements.my_search_result_entry_markdown), MyHTML.div(self._elements.my_search_result_graph_div, '', False), ] return MyHTML.div(self._elements.my_search_div, children_list)