You need to sign in to do that
Don't have an account?
Daniel Grabowski
SLDS Docked Composer Issue
I'm building a visualforce page using SLDS0121, and the Docked Composer doesn't seem to show up right. I directly copy/pasted the Base version, it just shows up inside of the page (at the bottom) without any formatting (header color, container box, etc). According to the docs it is stable, and I tried putting the code just about everywhere I can think of ( inside <div class="slds"> and/or <div class="myapp">, etc.) .
Anyone else having trouble with this?
https://www.lightningdesignsystem.com/components/docked-composer/
Anyone else having trouble with this?
https://www.lightningdesignsystem.com/components/docked-composer/
Also, during the SLDS Trailhead tutorial, I was told to use:
<apex:stylesheet value="{!URLFOR($Resource.SLDS_STATIC_RESOURCE, 'assets/styles/salesforce-lightning-design-system-vf.css')}" />
Looking in the actual downloaded v2.0.2 .zip, though, i should have been using this filename (removed the '-vf' at the end):
<apex:stylesheet value="{!URLFOR($Resource.SLDS0202, 'assets/styles/salesforce-lightning-design-system\.css')}" />
Works great now!
All Answers
SLDS components are fully CSS based components they just don’t work like it is expected or displayed. You need to use either jQuery or AngularJS to render these components.
For example, for this component make it hidden using hide() method of jQuery or ng-show/ng-hide from angularjs. On action when you want to show it just use show() or ng-show/ng-hide.
You can use any JavaScript framework. I mentioned jQuery and AngularJS because I used them with SLDS and they both work fine.
Also, during the SLDS Trailhead tutorial, I was told to use:
<apex:stylesheet value="{!URLFOR($Resource.SLDS_STATIC_RESOURCE, 'assets/styles/salesforce-lightning-design-system-vf.css')}" />
Looking in the actual downloaded v2.0.2 .zip, though, i should have been using this filename (removed the '-vf' at the end):
<apex:stylesheet value="{!URLFOR($Resource.SLDS0202, 'assets/styles/salesforce-lightning-design-system\.css')}" />
Works great now!