this.openPromptDialog = function () {
this.DialogService
.prompt({
cancel: 'Cancel',
ok: 'OK',
textContent: 'What do you want to say?',
title: 'Prompt'
})
.then(function (result) {
alert(result);
}, function () {
alert('declined');
});
};
<link rel="stylesheet" href="icons.css" />
<link rel="stylesheet" href="ng-ux.css" />
<script src="ng-ux.js"></script>
otherLines.forEach((line: string) => {
if (!isBlankLine(line)) {
whitespaceLength = getWhitespaceLength(line);
if (commonWhitespaceLength === -1 || whitespaceLength < commonWhitespaceLength) {
commonWhitespaceLength = whitespaceLength;
}
}
});
<link rel="stylesheet" href="icons.css" />
<link rel="stylesheet" href="ng-ux.css" />
<script src="ng-ux.js"></script>
var codeWasAlreadyHere = null;
Whole Element
Child Elements
w/ PrismJS
otherLines.forEach((line: string) => {
if (!isBlankLine(line)) {
whitespaceLength = getWhitespaceLength(line);
if (commonWhitespaceLength === -1 || whitespaceLength < commonWhitespaceLength) {
commonWhitespaceLength = whitespaceLength;
}
}
});
w/ Highlight (multiple code blocks)
if (!isBlankLine(line)) {
whitespaceLength = getWhitespaceLength(line);
if (commonWhitespaceLength === -1 || whitespaceLength < commonWhitespaceLength) {
commonWhitespaceLength = whitespaceLength;
}
}
this.DialogService
.prompt({
textContent: 'What do you want to say?',
title: 'Prompt'
})
var codeWasAlreadyHere = null;