fuelux

How to perform a check on ng-disabled in angularjs?

主宰稳场 提交于 2019-12-03 13:18:17
I am using a fuelUX Wizard and Angularjs. I would like the next button to be enabled or disabled basing on this controller method: $scope.canMoveForward = function(){ switch($("#moduleWizard").wizard("selectedItem").step){ case 1: //check if the module on the first step is valid*/ return $scope.validSelection && $scope.linkedPredicateForm.$valid; case 2: //check if the table is empty return !linkingDataSource.isEmpty(); case 3: var enab= ($scope.saveModeForm.$valid && $scope.newSourceForm.$valid) || ($scope.saveModeForm.$valid && $scope.appendSourceForm.$valid) } }; So indeed this is how I

setting fuelux datagrid source from backbone collection

左心房为你撑大大i 提交于 2019-12-02 08:14:01
I am trying to set the fuelux datagrid source from my backbone collection. The examples source is here on https://github.com/ExactTarget/fuelux/tree/master/sample . I tired like (function (root, factory) { if (typeof define === 'function' && define.amd) { define(factory); } else { root.sampleData = factory(); } }(this, function () { return { "geonames": new mycollection ///this will retrurn new collection array as in example }; })); And my backbone render consist following code to instatate data source var dataSource = new StaticDataSource({ columns: [ { property: 'username', label: 'Name',