copy = () => { const {tree, messages} = this.context clipboard(this.props.shareUrl) pushSuccessMessageAction(tree, messages.copySuccess) }
copyIcon.onclick = (e) => { copy(content) if (showCopyNotification) { this.notify('Saved to Clipboard!', { body: 'Paste it wherever you want!', silent: true }) } }
handleDirectLinkClick = (e) => { e.preventDefault() this.setHashAndScroll() copyToClipboard(location.href) this.setState({ copiedDirectLink: true }) setTimeout(() => this.setState({ copiedDirectLink: false }), 1000) }
return window.logStateString((err, result) => { if (err) { console.error(err.message) } else if (toClipboard) { copyToClipboard(result) console.log('State log copied') } else { console.log(result) } })
copy() { const text = this.text(); copy(text); this.setState({ showTooltip: true }, () => { setTimeout(() => { this.setState({ showTooltip: false }); }, 2000); }); }
copyHander(event){ //将代码复制到粘贴板 this.setState({ copypopoveropen: true, anchorEl: event.currentTarget, }); setTimeout(()=>{ this.setState({ copypopoveropen: false, }); },1000); copy(this.state.csscode); }
copyJSX = () => { copyToClipboard(this.state.sourceCode) this.setState({ copiedCode: true }) setTimeout(() => this.setState({ copiedCode: false }), 1000) }
copyJSX = () => { const { sourceCode } = this.state copyToClipboard(sourceCode) this.setState({ copied: true }) setTimeout(() => this.setState({ copied: false }), 1000) }
onClick: (e) => { e.stopPropagation() copyToClipboard(this.props.token.address) this.props.onClose() },
copyNoteLink (note) { const noteLink = `[${note.title}](:note:${note.key})` return copy(noteLink) }
copy = text => () => { copyToClipboard(text) this.setState({ copied: true }) setTimeout(() => this.setState({ copied: false }), 1000) }
$('#copy-to-clipboard-btn').click(() => { var json = $('#json-data').text() copy(json) })
onClick={ () => copy(item) }
this.$el.querySelector('input[type="search"]').focus() } }); }, openSubPanel(data, event){ store.subpanel = (store.subpanel == data) ? '' : data; }, copyLayoutToClipboard(){ if (this.model.contents.length > 0) { let item = extend(true, [], this.model.contents); let json = JSON.stringify(store.cleanup(item)); copy(json); this.$toast.success(sprintf(this.l10n.layoutCopied, this.l10n.pageTitle)); } else { this.$toast.info(this.l10n.layoutNotCopied); } }, toolsActiveClass(tool){ return (_.isString(tool.data) && store.subpanel == tool.data) ? 'active' : ''; }, toolsAction(tool, event = false){
onClick: function (event) { copyToClipboard(ethUtil.stripHexPrefix(accountDetail.privateKey)) },
onClick: (event) => { event.preventDefault() event.stopPropagation() copyToClipboard(ensResolution) },
() => copyToClipboard(showProfile.account)
handleCopy = () => { copyToClipboard(this.props.text); this.setState({isCopied: true}); setTimeout(() => this.setState({isCopied: false}), 1000); }
onClick: (event) => { event.preventDefault() event.stopPropagation() copyToClipboard(value) this.debounceRestore() },
handleCopy = () => { copyToClipboard(this.props.value) this.setState({ copiedCode: true }) setTimeout(() => this.setState({ copiedCode: false }), 1000) }
onClick: () => { copyToClipboard(selectedAddress) this.setState({ hasCopied: true }) setTimeout(() => this.setState({ hasCopied: false }), 3000) },
handleDirectLinkClick = () => { this.setHashAndScroll() copyToClipboard(window.location.href) }
onClick: () => { const { selected } = this.props const checkSumAddress = selected && ethUtil.toChecksumAddress(selected) copyToClipboard(checkSumAddress) },
onClick={() => { this.setState({ copied: true }) setTimeout(() => this.setState({ copied: false }), 3000) copyToClipboard(selectedAddress) }}
copyToClipBoard : function(text){ CopyToClipBoard(text); NoteDialog.openNoteDia(window.LanguageConfig.ModelServiceDetail.CopySuccessfully); },
handleClick = (copyText) => { copy(copyText); message.success("copied:" + copyText); };