Friday, 20 November 2015

How to refer multiple CSS files from static resource in Lightning Component Salesforce

Referring Multiple CSS from Static Resource:

    <ltng:require styles="/resource/CSSTableLibrary, /resource/TableViewCSS"/>

Where CSSTableLibrary and TableViewCSS is the "Static Resource" name.

Referring Multiple CSS from Static Resource ZIP file(From folder):

    <ltng:require styles="/resource/CSSTableLibrary/css/TableEnhancer.css, /resource/TableViewCSS/css/ViewBubble.css"/>

CSSTableLibrary  - Static Resource name.
css - Folder name.
TableEnhancer.css - CSS file name.

TableViewCSS - Static Resource name.
css - Folder name.

ViewBubble.css - CSS file name.

You can also checkout example from here.
http://salesforcekings.blogspot.in/2015/11/how-to-refer-and-use-css-from-static.html

No comments:

Post a Comment

Activities: Assign Tasks to a Queue Salesforce Lightning

Salesforce announced to assign Tasks to a Queue beginning from Spring'20 release. How does it work? In Setup, enter Queues in th...