Topic: issues with Intraweb
I've two isses with MDB and Intraweb html generator.
1) Checboxes
The html generator create this snippet:
<span class="EISSUECSS" id="EISSUE" style="">
<input name="EISSUE_CHECKBOX" tabindex="2" class="custom-control-input" id="EISSUE_CHECKBOX" onclick="checkBoxClick(event, 'EISSUE');" type="CHECKBOX">
<span id="EISSUE_CHKBCAPTION" onclick="checkBoxClick(event, 'EISSUE');">Checkbox text</span></span>
With MDB framework the result is the piece of text "Checkbox text" with no checkbox at all.
2) Buttons
Html generator create this snippet:
<input name="BQUERY2" class="btn btn-primary" id="BQUERY2" type="button" value="Query 2">
The result is a giant button.
I'm migrating from standard Bootstrap, where I do not face with this sort of problems at all.
Is there a way to adapt MDB behavior to html generator requirements?
Mikołaj Smoleński staff answered 6 years ago
Hi there,
The problem is not connected with our MDB package, but with the mentioned html generator. We can't be responsible for the third party framework.
Best regards
soiware pro premium priority commented 6 years ago
Of course you are not responsible ... I never said it.
I was only wondering if any JavaScript code or CSS could change this behavior and help me use both systems.
For example, in the case of the button, I can write the MDB html code to display the button correctly, and then link its onClick event to the automatically generated component that is included into a <div> hidden. In this way I can use both MDB and the html generation framework (the framework is useful in order to generate the logic for event management, I do not relay on it for controls rendering).
But in the case of the ckeckbox circumvent the problem with the same technique is much more difficult because it is also necessary to manage the update of the status of the control.
So the ideal solution would be if with some CSS or JavaScript code you could leave the html generator code intact and just display the checkbox, which does not appear now.
Mikołaj Smoleński staff commented 6 years ago
In typical situtations You can add new classes to Your elements (e.g. input or form), which will overwrite default styles (display, opacity etc.). If You're able to see checkbox in Your console You could check why it is not visible on the screen.
Best Regards
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- User: Pro
- Premium support: No
- Technology: MDB jQuery
- MDB Version: 4.5.10
- Device: All
- Browser: All
- OS: All
- Provided sample code: Yes
- Provided link: No