<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Minimal CSS for integration in Angular App in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Minimal-CSS-for-integration-in-Angular-App/m-p/1557739#M10191</link>
    <description>&lt;P&gt;My suggestion is here, Open&amp;nbsp;&lt;SPAN&gt;resources/autogenerated/qlik-styles.css file in that there could be one .html page also that you can manipulate with&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;body ID="Sample" Class="Sample1"&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;/body&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Then, CSS should written in 2 ways&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;#Sample {font-family: inherit!important;}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;You can like below for your next version of dashboard.&lt;/P&gt;&lt;PRE&gt;.Sample1 {font-family: inherit!important;}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 18 Mar 2019 09:39:30 GMT</pubDate>
    <dc:creator>Anil_Babu_Samineni</dc:creator>
    <dc:date>2019-03-18T09:39:30Z</dc:date>
    <item>
      <title>Minimal CSS for integration in Angular App</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Minimal-CSS-for-integration-in-Angular-App/m-p/1557696#M10190</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I would like to use graph in my angular(2+) app.&lt;/P&gt;&lt;P&gt;Is there a minimal CSS file containing specific rules for graphs ?&lt;/P&gt;&lt;P&gt;When I load&amp;nbsp;'&lt;SPAN&gt;resources/autogenerated/qlik-styles.css', there to many rules for global design and in conflict with my app ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Exemple:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;body {font-family: inherit!important;&amp;nbsp;}&lt;/PRE&gt;</description>
      <pubDate>Mon, 18 Mar 2019 09:00:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Minimal-CSS-for-integration-in-Angular-App/m-p/1557696#M10190</guid>
      <dc:creator>matthi0uw</dc:creator>
      <dc:date>2019-03-18T09:00:52Z</dc:date>
    </item>
    <item>
      <title>Re: Minimal CSS for integration in Angular App</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Minimal-CSS-for-integration-in-Angular-App/m-p/1557739#M10191</link>
      <description>&lt;P&gt;My suggestion is here, Open&amp;nbsp;&lt;SPAN&gt;resources/autogenerated/qlik-styles.css file in that there could be one .html page also that you can manipulate with&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;body ID="Sample" Class="Sample1"&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;/body&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Then, CSS should written in 2 ways&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;#Sample {font-family: inherit!important;}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;You can like below for your next version of dashboard.&lt;/P&gt;&lt;PRE&gt;.Sample1 {font-family: inherit!important;}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2019 09:39:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Minimal-CSS-for-integration-in-Angular-App/m-p/1557739#M10191</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2019-03-18T09:39:30Z</dc:date>
    </item>
    <item>
      <title>Re: Minimal CSS for integration in Angular App</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Minimal-CSS-for-integration-in-Angular-App/m-p/1557768#M10192</link>
      <description>&lt;P&gt;Thanks for your answer.&lt;/P&gt;&lt;P&gt;My problem is to have all CSS rules and display correctly graphs (not to find how add CSS in HTML).&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2019 10:04:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Minimal-CSS-for-integration-in-Angular-App/m-p/1557768#M10192</guid>
      <dc:creator>matthi0uw</dc:creator>
      <dc:date>2019-03-18T10:04:39Z</dc:date>
    </item>
    <item>
      <title>Re: Minimal CSS for integration in Angular App</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Minimal-CSS-for-integration-in-Angular-App/m-p/1557815#M10195</link>
      <description>&lt;P&gt;Question to you, Where are you referring that CSS? Could you please brief about your work..&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2019 11:07:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Minimal-CSS-for-integration-in-Angular-App/m-p/1557815#M10195</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2019-03-18T11:07:53Z</dc:date>
    </item>
    <item>
      <title>Re: Minimal CSS for integration in Angular App</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Minimal-CSS-for-integration-in-Angular-App/m-p/1557884#M10198</link>
      <description>&lt;P&gt;I have an angular app with multiple route (=url). I need to load only CSS, JS when I go in module using Qlik (to avoid unused loaded files) :&lt;/P&gt;&lt;PRE&gt;myApp.com
myApp.com/tools/...
myApp.com/dashboard/...&amp;nbsp; // only&lt;A href="https://stackblitz.com/edit/angular-s3non3" target="_blank" rel="noopener"&gt; those routes use Qlik.&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;So I have a 'guard' that loads require.js from Qlik Server to get all JS that Qlik needs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here an exemple of demo that shows my services :&amp;nbsp;&lt;A href="https://stackblitz.com/edit/angular-s3non3" target="_blank" rel="noopener"&gt;https://stackblitz.com/edit/angular-s3non3&lt;/A&gt; (I commented the part of injection about Qlik (require.js and qlik-styles.css) to avoid error for demo).&lt;/P&gt;&lt;P&gt;If load JS takes time, the guard force to wait complete then I go in the route. So I can create component to display graph like that :&lt;/P&gt;&lt;PRE&gt;//HTML:
&amp;lt;div id="qv01" style="height:200px;"&amp;gt;&amp;lt;/div&amp;gt;&lt;/PRE&gt;&lt;PRE&gt;//Typescript:
export class DashboardComponent implements OnDestroy {
  qlikApp: {};
  constructor() {
    window['require'].config( {
        baseUrl: 'http://myServerQlik/jwt/resources/',
      } );
      window['require'](['js/qlik'], (qlik: {}) =&amp;gt; {
        this.qlik = qlik;
        resolve(true);
      });
    this.qlikApp = this.qlik['openApp']('idApp', this.config);
    this.qlikApp['getObject']('qv01', 'myGraphId');
  }

  ngOnDestroy(): void {
    this.qlikApp['close']();
  }
}&lt;/PRE&gt;&lt;P&gt;This (extract of) code loads properly the graph and data from Qlik. But CSS doesn't work :&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;loading CSS file in head tag breaks some rules of my app (not enough focus on Qlik elements).&lt;/LI&gt;&lt;LI&gt;loading CSS file as import, in component with no encapsulation, don't load correctly files for fonts, image (background: url()), and put wrong places for tooltips (because tooltips are add in DOM outside of my component)...&lt;/LI&gt;&lt;/UL&gt;&lt;PRE&gt;// TypeScript:
@Component({
  templateUrl: './dashboard.component.html',
  styleUrls: ['./dashboard.component.scss'],
  encapsulation: ViewEncapsulation.None,
})
export class DashboardComponent {
    ...
}&lt;/PRE&gt;&lt;PRE&gt;// scss :
@import  url("https://myServerQlik/jwt/resources/autogenerated/qlik-styles.css");&lt;/PRE&gt;&lt;P&gt;So where can I find a file containing minimal CSS to display graphs ? Or which rules can I remove ? How often the file changes (in case I update manually and store it in my app project) ?&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2019 13:51:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Minimal-CSS-for-integration-in-Angular-App/m-p/1557884#M10198</guid>
      <dc:creator>matthi0uw</dc:creator>
      <dc:date>2019-03-18T13:51:04Z</dc:date>
    </item>
  </channel>
</rss>

