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 ) {
|
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" +
|
builder.getChildByTagName ( "html" ).getChildByTagName ( "body" ).addChild ( "script" ).withAttribute ( "type" , "script/javascript" ).withText ( "" +
|
||||||
"const popoverList = [...popoverTriggerList].map(popoverTriggerEl => new bootstrap.Popover(popoverTriggerEl));" );
|
"function scanPopOver()" +
|
||||||
|
"{" +
|
||||||
|
"var popoverTriggerList = document.querySelectorAll('[data-bs-toggle=\"popover\"]');\n" +
|
||||||
|
"var popoverList = [...popoverTriggerList].map(popoverTriggerEl => new bootstrap.Popover(popoverTriggerEl));" +
|
||||||
|
"" +
|
||||||
|
"}" );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue