File tree Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Original file line number Diff line number Diff line change @@ -213,6 +213,49 @@ entrylabs/ml은 사용자가 원하는 학습모을 선택하고 학습하는
213213사용자들이 인공지능 모델을 학습하는 UI를 팝업형태로 생성합니다.
214214
215215entry-tool을 활용한 팝업과 유사합니다.
216+ #### Vanilla JS
217+ ``` js
218+ < ! DOCTYPE html>
219+ < html lang= " ko" >
220+ < head>
221+ < meta charset= " UTF-8" / >
222+ < meta name= " viewport" content= " width=device-width, initial-scale=1.0" / >
223+ < meta http- equiv= " X-UA-Compatible" content= " ie=edge" / >
224+ < title> EntryJS Base Example< / title>
225+ < link rel= " stylesheet" href= " ./test/ai/entry-ml.css" / >
226+ < / head>
227+ < body>
228+ < button onClick= {loadPopup ()}> show< / button>
229+ < div id= " popupContainer" >< / div>
230+ < script type= " text/javascript" src= " ./test/ai/entry-ml.js" >< / script>
231+ < script>
232+ learningPopup = new Entryml.Popup ({
233+ container: document .getElementById (' popupContainer' ),
234+ isShow: false ,
235+ data: {
236+ tokenizerPath: ' /test/ai/resources' ,
237+ },
238+ });
239+ const loadPopup = () => {
240+ learningPopup .show ();
241+ }
242+ < / script>
243+ < / body>
244+ < / html>
245+ ```
246+ #### next.js
247+ [ webpack externals] ( https://webpack.kr/configuration/externals/#externals ) . 설정을 이용하여 아래와 같이 사용 가능합니다.
248+
249+ webpack 설정.
250+ ``` js
251+ config .externals = [
252+ {
253+ ' @entrylabs/tool' : ' EntryTool' ,
254+ ' @entrylabs/tool/component' : ' EntryTool.Component' ,
255+ ' @entrylabs/ml' : ' Entryml' ,
256+ },
257+ ];
258+ ```
216259
217260``` js
218261const learningPopup = {};
You can’t perform that action at this time.
0 commit comments