1"use strict";(globalThis.webpackChunknocobase=globalThis.webpackChunknocobase||[]).push([["212"],{97487(e,t,n){n.r(t),n.d(t,{default:()=>c});let c={contexts:[n(79271).JSBlockRunJSContext],prefix:"sn-jsb-click",label:"Add click listener",description:"Render a button and bind a click event handler",locales:{"zh-CN":{label:"æ·»å ç¹å»çå¬",description:"渲ææé®å¹¶ç»å®ç¹å»äºä»¶å¤ç"}},content:` 2// Render a button and bind a click handler 3const button = document.createElement('button'); 4button.textContent = ctx.t('Click me'); 5button.style.padding = '6px 12px'; 6button.addEventListener('click', () => ctx.message.success(ctx.t('Clicked!'))); 7 8const wrapper = document.createElement('div'); 9wrapper.style.padding = '12px'; 10wrapper.appendChild(button); 11 12ctx.render(wrapper); 13`}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.