Being new to NodeJS, and really wanting to build using its features. However, making the transition from PHP to Node is proving to be quite a challenge.
The basic structure is not too difficult. However, adding some common components that we used with PHP are no presenting new challenges. For instance, the ease of inserting a dynamic modal and its triggering method. This has proven to be pretty challenging. I’m sure the methods of using these components with PHP have clouded my mind.
For instance while following a NodeJS and SQLite tutorial, I thought I would add a modal to use as an update form. At first I tried to place a dmx-on:click within the data table row (). However the method of doing this with in a PHP doc has proved to be quite different. I’ve tried everything I know. No success. Then I tried to add a button at the end of table item row (). Still, no success.
Adding components on the page has nothing to do with the server model selected. Nothing is different when adding a dynamic modal on PHP, NodeJS or .NET, or plain HTML page.
The errors in the browser tell you that some files are missing - some bootstrap css/js files and some components css/js.
Are you sure they are on the server? Are you sure you have saved your layout page?
How does your layout page head tags look?
I just checked the local folders and it appears that the bootstrap table generator files are missing for both version 4 and version 5.
When I just reselected the frameworks however, the app reports were all successfully installed. Yet, the bootstrap table generator files for both versions 4 and 5 fail to install.
Is your content page attached to the layout page you pasted the code from?
Are you sure you have saved your layout page after adding the components on the content page?
I found the main file that was missing: “/bootstrap/5/js/bootstrap.bundle.min.js”
This fixed it.
I’m not sure why it wasn’t being loaded into the head. I had to load it manually.