MCPcopy Index your code
hub / github.com/dcloudio/mui / createInput

Function createInput

js/mui.popup.js:35–37  ·  view source on GitHub ↗
(placeholder)

Source from the content-addressed store, hash-verified

33 }());
34
35 var createInput = function(placeholder) {
36 return '<div class="' + CLASS_POPUP_INPUT + '"><input type="text" autofocus placeholder="' + (placeholder || '') + '"/></div>';
37 };
38 var createInner = function(message, title, extra) {
39 return '<div class="' + CLASS_POPUP_INNER + '"><div class="' + CLASS_POPUP_TITLE + '">' + title + '</div><div class="' + CLASS_POPUP_TEXT + '">' + message.replace(/\r\n/g, "<br/>").replace(/\n/g, "<br/>") + '</div>' + (extra || '') + '</div>';
40 };

Callers 1

createPromptFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected