本文整理匯總了TypeScript中common.Common.clearHtml方法的典型用法代碼示例。如果您正苦於以下問題:TypeScript Common.clearHtml方法的具體用法?TypeScript Common.clearHtml怎麽用?TypeScript Common.clearHtml使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類common.Common
的用法示例。
在下文中一共展示了Common.clearHtml方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: executeIfTextUnchanged
executeIfTextUnchanged(expressionText, "searchText", 300, function() {
var searchCriteria = {
caseSensitive: isCheckboxSelected("inputCaseSensitive"),
regularExpression: isCheckboxSelected("inputRegularExpression"),
wholeWord: isCheckboxSelected("inputWholeWord")
};
var expressionPattern = null;
if(fileFilterPatterns) {
expressionPattern = $("#fileFilterPatterns").html();
expressionPattern = Common.clearHtml(expressionPattern);
}
if(expressionText) {
expressionText = Common.clearHtml(expressionText);
}
listFunction(expressionText, expressionPattern, searchCriteria, function(list, requestedText) {
var currentText = $("#searchText").html();
if(!requestedText || currentText == requestedText) {
var content = createDialogListTable(list);
if(content.content){
$("#dialog").html(content.content);
}else {
$("#dialog").html('');
}
// this is kind of crap, but we need to be sure the html is rendered before binding
if(content.init) {
setTimeout(content.init, 100); // register the init function to run
}
}
});
});
示例2: function
event.onComplete = function() {
var sel = grid.getSelection();
if (sel.length == 1) {
var record = grid.get(sel[0]);
var text = $("#dialogPath").html();
var expression = Common.clearHtml(text);
VariableManager.toggleExpandEvaluation(record.path, expression);
}
grid.selectNone();
grid.refresh();
}