How to use the navigation/menu.extractFilteredMarkets function in navigation

To help you get started, we’ve selected a few navigation examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github binary-com / webtrader / src / tradingtimes / tradingTimes.es6 View on Github external
const refresh = (data) => {
        const result = processData(menu.extractFilteredMarkets(data));
        function changed() {
          const val = $(this).val();

          if (result.submarket_names[val]) submarket_names.update_list(result.submarket_names[val]);

          updateTable(result, market_names.val(), submarket_names.val());
        };

          if (market_names == null) {
              const select = $('<select>');
              select.appendTo(subheader);
              market_names = windows.makeSelectmenu(select, {
                list: result.market_names,
                inx: 0,
              });
              market_names.off('selectmenuchange', changed);</select>
github binary-com / webtrader / src / tradingtimes / tradingTimes.es6 View on Github external
const refresh = (data) =&gt; {
        const result = processData(menu.extractFilteredMarkets(data[0]));
        const active_symbols = local_storage.get('active_symbols')
        const header = getMarketsSubmarkets(active_symbols);
        const markets_sorted_list = getOrderedMarkets(active_symbols);
        
        if($.isEmptyObject(header)) return;

        function changed() {
          const val = $(this).val();

          if (header[val]) submarket_names.update_list(Object.keys(header[val]));

          updateTable(result, market_names.val(), submarket_names.val());
        };

          if (market_names == null) {
              const select = $('<select>');</select>