Comments (4)
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.
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.
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.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular-elastic-grid.