Closed johndebord closed 2 years ago
I have not worked much with bootstrap (no not as well tested), but I'll take a look soon.
First comment, don't use ids, CLOG will assign ids under the covers. You can keep the ids and clog will assign the their names in clog based on the id but then you have insure you never duplicate that html on the same browser window. If you need access in JavaScript to a specific element not going through Lisp you can use for example $('[data-clog-name="button-1"]')
So if you drop your html in to a custom html block and then double clicking the control (double clicking "freezes" it and so you actually then interact with the html and not the "placer" it is working, strangely you need to double click twice (as if another placer was placed there), but as you point out, it does not work out when executed with the test button.
The latest git has this working now.
Custom HTML Block
now works when executed with the test
button, but I tested it with Custom HTML
, and it doesn't work. I can try to make a PR later if I get around to it. I'm assuming that the changes involving Custom HTML Block
just have to be ported over to Custom HTML
.
Try using the convert to div button after creating a working custom html block and save and reload the panel. Let me know if after doing that if works or not.
It doesn't look the bootstrap drop down is going to work when made it to separate controls, ie not as the custom html block. Part of the issue is the extra attributes added the html. data-bs-* that are stripped out by builder on import. They remain when protected as a custom block.
I plan on a clog-bootsrap plugin for the builder and will be able to handle it as part of that. If the custom block doesn't work for your immediate needs let me know. I assume no issues with other bootstrap controls.
Not sure if I'm doing something wrong. But when I click
test
in the Clog Builder to test myCustom HTML [Block]
it doesn't seem to be working. For example, with this HTML snippet:The dropdown menu works when on the editable page (e.g., in my case:
http://127.0.0.1:8080/builder-custom?bid=3867284996&curl=%2Fbootstrap.html
) (and when the proper parent controls are frozen (e.g.,custom-2
anddropdownMenuButton1
)).But when I click
test
in the Clog Builder to test it all out I'm (expectedly) redirected to the pagehttp://127.0.0.1:8080/test
, and the dropdown menu doesn't work.