Example #1
0
 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 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)