Merge pull request #2206 from mabashian/survey-button-tooltip

Added the ability to set tooltips on form generator buttons.  Added t…
This commit is contained in:
Michael Abashian 2016-06-08 16:00:11 -04:00
commit 0bbd3013ab
2 changed files with 6 additions and 1 deletions

View File

@ -317,7 +317,9 @@ export default
add_survey: {
ngClick: 'addSurvey()',
ngShow: 'job_type.value !== "scan" && !survey_exists',
awFeature: 'surveys'
awFeature: 'surveys',
awToolTip: 'Surveys allow users to be prompted at job launch with a series of questions related to the job',
dataPlacement: 'top'
},
edit_survey: {
ngClick: 'editSurvey()',

View File

@ -1718,6 +1718,9 @@ angular.module('FormGenerator', [GeneratorHelpers.name, 'Utilities', listGenerat
//html += "\" ";
}
}
if(button.awToolTip) {
html += " aw-tool-tip='" + button.awToolTip + "' data-placement='" + button.dataPlacement + "' data-tip-watch='" + button.dataTipWatch + "'";
}
html += ">";
html += " " + button.label + "</button>\n";
}