Giter Site home page Giter Site logo

Comments (4)

lbenie avatar lbenie commented on July 21, 2024

Hi @aishwhensheds

I have not implemented a click event on the buttons. AFAIK they are all anchor tags.

the original libs does this

 for (i = 0; i < urlList.length; i++)
 {
   var linkTarget = (urlList[i]['new_window']) ? '_blank' : '_self';
   var ObjA = $('<a target="'+linkTarget+'"></a>');
   ObjA.addClass('link-button');
   if(i==0){
     ObjA.addClass('first');
   }
   ObjA.attr("href", urlList[i]['url']);
   ObjA.html( urlList[i]['title']);
   this.$detailButtonList.append(ObjA);
 }

So when you use the directive, the url option is an anchor tag.

"button_list": [{"title": "Demo", "url": "http://#"}, {"title": "Download", "url": "http://#"}]

I agree that it would be nice to have a click event !

I'll keep that in mind for the future release when I get some time or maybe you could provide a PR with the fix.

from angular-elastic-grid.

aishwhensheds avatar aishwhensheds commented on July 21, 2024

HI @lbenie

Thanks for your response.

can you at least provide me html page you implemented with the angular-elastic-grid.

from angular-elastic-grid.

lbenie avatar lbenie commented on July 21, 2024

I can't seem to find my little test project.

I have this directive implemented in a project but it has a shitloads of other components.

You can scaffold any angular app and add this via bower

this is the code that I'm using

<div class="row">
  <elastic-grid items="projects" filter="popup"></elastic-grid>
</div>
angular.module('gisWebApp')
  .controller('WorkCtrl', function ($scope, $translate, api, socket) {
     api.project($translate.preferredLanguage()).getList().then(function (projects) {
        $scope.projects = projects;
        socket.syncUpdates('project', $scope.projects);
        });
   }
 }

I am using restangular and made my own service and I am fetching projects from my DB.

Sorry that I can't help more 😞

from angular-elastic-grid.

aishwhensheds avatar aishwhensheds commented on July 21, 2024

Thanks @lbenie, I will try to make it, if get any success than definitely share over here.

from angular-elastic-grid.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.