feat(templating): polished variable template edit forms, added new template variable type: datasource

This commit is contained in:
Torkel Ödegaard
2016-04-16 12:03:29 -04:00
parent 6b2fedb1c2
commit 1cce5fdfe1
7 changed files with 171 additions and 69 deletions

View File

@@ -11,12 +11,6 @@ export function infoPopover() {
template: '<i class="fa fa-info-circle"></i>',
transclude: true,
link: function(scope, elem, attrs, ctrl, transclude) {
// var inputElem = elem.prev();
// if (inputElem.length === 0) {
// console.log('Failed to find input element for popover');
// return;
// }
var offset = attrs.offset || '0 -10px';
var position = attrs.position || 'right middle';
var classes = 'drop-help drop-hide-out-of-bounds';
@@ -44,6 +38,7 @@ export function infoPopover() {
position: position,
classes: classes,
openOn: openOn,
hoverOpenDelay: 400,
tetherOptions: {
offset: offset
}