Hi,
Is it possible to specify a html template and add the generated javascript to this html file ?
e.g.
Or should I use the following method. (javascript is adding the elements)
Thanks !
Is it possible to specify a html template and add the generated javascript to this html file ?
e.g.
B4X:
BANano.HTML_TEMPLATE = "my template.html"
Or should I use the following method. (javascript is adding the elements)
B4X:
Dim j As BANanoElement
j = BANano.GetElement("body")
j.Append($"
<div id='content'>
<button id="defaultButton">Default</button>
<button id="primaryButton">Primary</button>
<button id="infoButton">Info</button>
<button id="successButton">Success</button>
<button id="warningButton">Warning</button>
<button id="dangerButton">Danger</button>
<button id="inverseButton">Inverse</button>
<button id="linkButton">Link</button>
</div>
"$)
Thanks !