Add popover add method
This commit is contained in:
parent
5a67747e66
commit
1e993739e8
1 changed files with 7 additions and 2 deletions
|
@ -39,8 +39,13 @@ public class DOM {
|
|||
}
|
||||
|
||||
public static void addPopOverScan ( HTMLElementBuilder builder ) {
|
||||
builder.getChildByTagName ( "html" ).getChildByTagName ( "body" ).addChild ( "script" ).withAttribute ( "type" , "script/javascript" ).withText ( "const popoverTriggerList = document.querySelectorAll('[data-bs-toggle=\"popover\"]');\n" +
|
||||
"const popoverList = [...popoverTriggerList].map(popoverTriggerEl => new bootstrap.Popover(popoverTriggerEl));" );
|
||||
builder.getChildByTagName ( "html" ).getChildByTagName ( "body" ).addChild ( "script" ).withAttribute ( "type" , "script/javascript" ).withText ( "" +
|
||||
"function scanPopOver()" +
|
||||
"{" +
|
||||
"var popoverTriggerList = document.querySelectorAll('[data-bs-toggle=\"popover\"]');\n" +
|
||||
"var popoverList = [...popoverTriggerList].map(popoverTriggerEl => new bootstrap.Popover(popoverTriggerEl));" +
|
||||
"" +
|
||||
"}" );
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue