Skip to content
DataMiner DoJo

More results...

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages
Search in posts
Search in pages
Log in
Menu
  • Blog
  • Questions
  • Learning
    • E-learning Courses
    • Open Classroom Training
    • Certification
      • DataMiner Fundamentals
      • DataMiner Configurator
      • DataMiner Automation
      • Scripts & Connectors Developer: HTTP Basics
      • Scripts & Connectors Developer: SNMP Basics
      • Visual Overview – Level 1
      • Verify a certificate
    • Tutorials
    • Video Library
    • Books We Like
    • >> Go to DataMiner Docs
  • Expert Center
    • Solutions & Use Cases
      • Solutions
      • Use Case Library
    • Markets & Industries
      • Media production
      • Government & defense
      • Content distribution
      • Service providers
      • Partners
      • OSS/BSS
    • DataMiner Insights
      • Security
      • Integration Studio
      • System Architecture
      • DataMiner Releases & Updates
      • DataMiner Apps
    • Agile
      • Agile Webspace
      • Everything Agile
        • The Agile Manifesto
        • Best Practices
        • Retro Recipes
      • Methodologies
        • The Scrum Framework
        • Kanban
        • Extreme Programming
      • Roles
        • The Product Owner
        • The Agile Coach
        • The Quality & UX Coach (QX)
    • DataMiner DevOps Professional Program
  • Downloads
  • More
    • Feature Suggestions
    • Climb the leaderboard!
    • Swag Shop
    • Contact
      • General Inquiries
      • DataMiner DevOps Support
      • Commercial Requests
    • Global Feedback Survey
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Deal Registration
  • >> Go to dataminer.services

Low-code app – Can I refer DataMiner css file in custom HTML?

Solved1.25K views14th July 2023css lowcodeapps
2
Leander Druwel [SLC] [DevOps Member]2.02K 14th July 2023 0 Comments

Hi all,

We have built a low-code app, and one specific page contains some additional information. That information is pasted as custom HTML content into a web component.

In order to make streamline look & feel, we'd like to use the same CSS file as DataMiner is using across all low-code apps. Is there a way to refer to the DataMiner CSS file?

We tried making a ref from the custom HTML, but unsure if that file is actually easily accessible from within the custom HTML. Next, we did also take the content of the CSS file and added that into the custom HTML. That seems to work fine when just showing the HTML stand-alone in a browser, but when adding that into the web component of a low-code app, the layout seems to be broken.

Any thoughts?

Thanks!

Leander Druwel [SLC] [DevOps Member] Selected answer as best 14th July 2023

3 Answers

  • Active
  • Voted
  • Newest
  • Oldest
2
Gilles Bara [SLC] [DevOps Enabler]6.80K Posted 14th July 2023 1 Comment

The input of the Web component does indeed get sanitized, however, internal css through <style> tags is not considered unsafe. It does get stripped though when the first element of the html is the style tag. I would consider this an issue.

You can workaround this issue for now by placing your <style>...</style> anywhere else but the first element in the html.

Next to the internal css, inline css will also work, and might be less prone to surprises: The entire <style> tag will get stripped if it contains one potential risk (eg a background-image), so you lose the style of everything in that case. When using inline css, you'll lose only the style on one specific element when it would contain styles that are considered unsafe.

But I would not advise against the use of internal css, as it's way more easy to maintain/adjust.

Leander Druwel [SLC] [DevOps Member] Posted new comment 14th July 2023
Leander Druwel [SLC] [DevOps Member] commented 14th July 2023

Hey Gilles, thanks for the update. That does make sense. Security is kept high in all cases by removing any potential malicious information, but internal css can indeed be used. Just not (yet) when it is the first element. Thanks!

4
Jarno Lernou [SLC] [DevOps Enabler]5.00K Posted 14th July 2023 1 Comment

Hi Leander,

Have you tried adding inline CSS, if you cannot use a reference to a file?

Kind Regards,
Jarno

Leander Druwel [SLC] [DevOps Member] Edited comment 14th July 2023
Leander Druwel [SLC] [DevOps Member] commented 14th July 2023

Hey Jarno, good tip indeed. Adding a file references or hard-coded layout into the tags seems to get sanitized, but inline css is working fine. So, ended up assigning the css through the style attribute.

4
Seppe Dejonckheere [SLC] [DevOps Advocate]2.21K Posted 14th July 2023 0 Comments

Hi Leander,

The content of web components is sanitized to prevent the injection of dangerous javascript (cross site scripting). Inline CSS will be sanitized as well because this can potentially be malicous as well. So, some parts of the inline CSS will be removed which is probably the reason the layout seems to be broken.

I quickly tested if it is possible to reference the CSS file, but it seems like the 'link' tag get sanitized away as well, to prevent from potential malicious CSS.

Kind regards,

Leander Druwel [SLC] [DevOps Member] Unselected an answer 14th July 2023
Please login to be able to comment or post an answer.

My DevOps rank

DevOps Members get more insights on their profile page.

My user earnings

0 Dojo credits

Spend your credits in our swag shop.

0 Reputation points

Boost your reputation, climb the leaderboard.

Promo banner DataMiner DevOps Professiona Program
DataMiner Integration Studio (DIS)
Empower Katas

Recent questions

Alarm Dashboard PDF/CSV Export 1 Answer | 0 Votes
Is the Microsoft SharePoint Connector Still Usable 0 Answers | 0 Votes
Is the Microsoft SharePoint Connector Still Usable 0 Answers | 0 Votes

Question Tags

adl2099 (115) alarm (62) Alarm Console (82) alarms (100) alarm template (83) Automation (223) automation scipt (111) Automation script (167) backup (71) Cassandra (180) Connector (108) Correlation (68) Cube (150) Dashboard (194) Dashboards (188) database (83) DataMiner Cube (57) DIS (81) DMS (71) DOM (139) driver (65) DVE (55) Elastic (83) Elasticsearch (115) elements (80) Failover (104) GQI (159) HTTP (76) IDP (74) LCA (151) low code app (166) low code apps (93) lowcodeapps (75) MySQL (53) protocol (203) QAction (83) security (88) services (51) SNMP (86) SRM (337) table (54) trending (87) upgrade (62) Visio (539) Visual Overview (345)
Privacy Policy • Terms & Conditions • Contact

© 2025 Skyline Communications. All rights reserved.

DOJO Q&A widget

Can't find what you need?

? Explore the Q&A DataMiner Docs

[ Placeholder content for popup link ] WordPress Download Manager - Best Download Management Plugin