Android Question Help with Code from js to b4a

walmo

Member
Licensed User
Please can someone help with this code.
I need to exute in b4a.
Thanks

B4X:
/
**
 * @module wifi basic
 * @class wifi basic
 */
define([ 'jquery', 'knockout', 'config/config', 'service', 'underscore' ],

    function ($, ko, config, service, _) {

        var securityModes = _.map(config.AUTH_MODES, function (item) {
            return new Option(item.name, item.value);
        });

        var wep_modes = _.map(config.WEP_MODES, function (item) {
            return new Option(item.name, item.value);
        });
       
        var waittimeOption = _.map(config.WAITTIMES, function(item) {
               return new Option(item.name, item.value);
        });

        function maxStationOption(max) {
            var options = [];
            for (var i = 1; i <= max; i++) {
                options.push(new Option(i, i));
            }
            return options;
        }
       
       /* function waittimeOption() {
            var options = [];
            options.push(new Option(5, 5));
            options.push(new Option(10, 10));
            var lan = service.getLanguage();
            //showAlert(lan.Language);
            if(lan.Language=='en'){
                options.push(new Option("no never", -1));
            }else{
                options.push(new Option("永不", -1));
            }
            return options;
        }*/

        /**
         * wifi basic view model
         * @class WifiBasicVM
         */
Thanks
 
Top