当前位置:网站首页>Auto. JS custom dialog box

Auto. JS custom dialog box

2022-04-23 17:56:00 Feast notes

 Insert picture description here

view = ui.inflate(
    <vertical>
        <horizontal>
            <text text=" account number "/>
            <input id=" account number "w="*"/>
        </horizontal>
        <horizontal>
            <text text=" password "/>
            <input id=" password "w="*"/>
        </horizontal>
    </vertical>
);
dialogs.build({
    
    customView: view,
    title: " Sign in ",
    positive: " determine ",
    negative: " Cancel ",
    neutral: " register "
}).on("positive", (dialog) => {
    
     account number =view. account number .text();
     password =view. password .text();
    toast(" account number ="+ account number +"\n password ="+ password )
}).on("negative", (dialog) => {
    
    toast(" Cancel ")
    dialog.dismiss();
}).on("neutral", (dialog) => {
    
    toast(" register ")
}).show();

QQ Group 568523841

版权声明
本文为[Feast notes]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204231752502995.html