peacemaker Expert Licensed User Longtime User Sep 17, 2022 #1 HI, All Is there possibility to insert any HTML text line into all generating pages ? Into BODY, or other place. Say, code of 3rd party services.
HI, All Is there possibility to insert any HTML text line into all generating pages ? Into BODY, or other place. Say, code of 3rd party services.
MichalK73 Well-Known Member Licensed User Longtime User Sep 19, 2022 #2 You can include HTML code from version 4.96 so in 5.0 it is. I even use this method quite often and it works very cool. Code: Copy Dim source As String = File.ReadString(File.DirApp&"/help", m.Get("help")) 'source is code HTML Dim e As ABMLabel e.Initialize(page, "help", "aaa",ABM.SIZE_A, False,"") e.TextAsRAWHTML = source page.Cell(1,3).AddComponent(e) Upvote 0
You can include HTML code from version 4.96 so in 5.0 it is. I even use this method quite often and it works very cool. Code: Copy Dim source As String = File.ReadString(File.DirApp&"/help", m.Get("help")) 'source is code HTML Dim e As ABMLabel e.Initialize(page, "help", "aaa",ABM.SIZE_A, False,"") e.TextAsRAWHTML = source page.Cell(1,3).AddComponent(e)
peacemaker Expert Licensed User Longtime User Sep 19, 2022 #3 Thanks. What about extra JS-code injecting ? Upvote 0
MichalK73 Well-Known Member Licensed User Longtime User Sep 19, 2022 #4 peacemaker said: Thanks. What about extra JS-code injecting ? Click to expand... In BuildPage() insert B4X: Copy page.AddExtraJavaScriptFile("my.js") JS copy to folder js. Upvote 0
peacemaker said: Thanks. What about extra JS-code injecting ? Click to expand... In BuildPage() insert B4X: Copy page.AddExtraJavaScriptFile("my.js") JS copy to folder js.
alwaysbusy Expert Licensed User Longtime User Sep 19, 2022 #5 peacemaker said: What about extra JS-code injecting ? Click to expand... In BuildPage your can use: Code: Copy page.AddExtraJavaScriptFile("custom/JsBarcode.all.min.js") page.AddExtraCSSString($".extraPadding {padding-left: 2rem !important} .extraPaddingCheck {padding-top: 6px;padding-bottom: 6px;padding-left: 2rem !important} .extraPaddingSwitch {padding-top: 6px !important;padding-bottom: 6px !important} .jsoned div p label{margin-right: 50px}"$) page.AddExtraCSSFile("custom/mycss.css") Upvote 0
peacemaker said: What about extra JS-code injecting ? Click to expand... In BuildPage your can use: Code: Copy page.AddExtraJavaScriptFile("custom/JsBarcode.all.min.js") page.AddExtraCSSString($".extraPadding {padding-left: 2rem !important} .extraPaddingCheck {padding-top: 6px;padding-bottom: 6px;padding-left: 2rem !important} .extraPaddingSwitch {padding-top: 6px !important;padding-bottom: 6px !important} .jsoned div p label{margin-right: 50px}"$) page.AddExtraCSSFile("custom/mycss.css")