How to add custom angular directive in service portal widget?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2017 12:15 PM
I'm trying to get the bootstrap function popover to work within ng-repeat in service portal widget. It looks like a need a directive similar to:
app.directive('bsPopover', function() {
return function(scope, element, attrs) {
element.find("a[rel=popover]").popover({ placement: 'bottom', html: 'true'});
};
});
And I am having trouble adding the directive properly to my widget so the popover function will work within the widget.
Thanks in advance for any help!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2017 11:36 AM
Hi,
The information on these threads might help here:
How to add directive to widget serviceportal
Writing an AngularJS custom filter for Service Portal
Thanks,
Manjeet
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2017 10:42 AM
I wrote a tutorial on how to do this: https://serviceportal.io/creating-angular-directive-service-portal/
