Skip to content

Bootforce lets you embed Bootstrap and JQuery frameworks and libraries into your Visualforce pages, making it easy to build visually striking Salesforce applications.

License

Notifications You must be signed in to change notification settings

ghacic/bootforce

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

Bootforce

Bootforce lets you embed Bootstrap and JQuery frameworks and libraries into your Visualforce pages, making it easy to build visually striking Salesforce applications.

Version

Bootforce is based upon Bootstrap version 3.3.1

Directories & Files

Bootforce is packaged as a static resource, within which you'll find the following directories and files, logically grouping common resources and providing both compiled and minified variations.

Downloading and unzipping the compressed static resource will allow you to see the structure of Bootforce. You'll see something like this:

bootforce/
    +-- css/
    ¦   +-- bootforce.css
    ¦   +-- bootforce.min.css
    ¦   +-- bootforce-theme.css
    ¦   +-- bootforce-theme.min.css
    +-- fonts/
    ¦   +-- glyphicons-halflings-regular.eot
    ¦   +-- glyphicons-halflings-regular.svg
    ¦   +-- glyphicons-halflings-regular.ttf
    ¦   +-- glyphicons-halflings-regular.woff
    +-- js/
        +-- bootstrap.js
        +-- bootstrap.min.js
        +-- jquery-1.11.1.js
        +-- jquery-1.11.1.min.js
        +-- jquery-2.1.1.js
        +-- jquery-2.1.1.min.js

Precompiled files for quick drop-in usage in nearly any Visualforce project. We provide compiled CSS and JS (bootforce.*), as well as compiled and minified CSS and JS (bootforce.min.*). Fonts from Glyphicons are included, as is the optional Bootstrap theme.

Installation

You may create your own static resource using this repository as a guide or you can download the static resource directly from www.InteractiveTies.com.

Once you have the zip file locally you will need to get it into your Salesforce org. Navigate to Setup > Develop > Static Resources and then click the New button on that page. Use the following information for the new static resource:

  • Name: bootforce
  • Description: Bootstrap front end framework customized to work on the force.com platform. Version 3.3.1
  • File: upload from local location
  • Cache Control: Private

Click the Save button and you are good-to-go!

Basic Template

Copy the Visualforce page below to begin working with minimal Bootstrap functionality.

<apex:page docType="html-5.0">
    <apex:stylesheet value="{!URLFOR($Resource.bootforce, '/css/bootforce.min.css')}"></apex:stylesheet>
    <apex:stylesheet value="{!URLFOR($Resource.bootforce, '/css/bootforce-theme.min.css')}"></apex:stylesheet>
    <apex:pageMessages></apex:pageMessages>
    <div class="bootforce">
        <!--All content here -->
    </div>
    
    <apex:includeScript value="{!URLFOR($Resource.bootforce, '/js/jquery-2.1.1.min.js')}"></apex:includeScript>
    <apex:includeScript value="{!URLFOR($Resource.bootforce, '/js/bootstrap.min.js')}"></apex:includeScript>
</apex:page>

Template with Glyphicons

Copy the Visualforce page below to begin working with Bootstrap functionality including glyphicons.

<apex:page docType="html-5.0">
    <apex:stylesheet value="{!URLFOR($Resource.bootforce, '/css/bootforce.min.css')}"></apex:stylesheet>
    <apex:stylesheet value="{!URLFOR($Resource.bootforce, '/css/bootforce-theme.min.css')}"></apex:stylesheet>
<style type="text/css">
/* USING GLYPHS? You need to include these lines in order to display them properly in your Visualforce pages */
/* START: Glyph requirement */
@font-face {
    font-family: 'Glyphicons Halflings';
    src: url('{!URLFOR($Resource.bootforce, '/fonts/glyphicons-halflings-regular.eot')}');
    src: url('{!URLFOR($Resource.bootforce, '/fonts/glyphicons-halflings-regular.eot?#iefix')}') format('embedded-opentype'), url('{!URLFOR($Resource.bootforce, '/fonts/glyphicons-halflings-regular.woff')}') format('woff'), url('{!URLFOR($Resource.bootforce, '/fonts/glyphicons-halflings-regular.ttf')}') format('truetype'), url('{!URLFOR($Resource.bootforce, '/fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular')}') format('svg');
}
/* END: Glyph requirement */
</style>
    <apex:pageMessages></apex:pageMessages>
    <div class="bootforce">
        <!--All content here -->
    </div>
    
    <apex:includeScript value="{!URLFOR($Resource.bootforce, '/js/jquery-2.1.1.min.js')}"></apex:includeScript>
    <apex:includeScript value="{!URLFOR($Resource.bootforce, '/js/bootstrap.min.js')}"></apex:includeScript>
</apex:page>

Template with Popovers & Tooltips

Copy the Visualforce page below to work with Bootstrap including the ability to use popovers and tooltips.

<apex:page docType="html-5.0">
    <apex:stylesheet value="{!URLFOR($Resource.bootforce, '/css/bootforce.min.css')}"></apex:stylesheet>
    <apex:stylesheet value="{!URLFOR($Resource.bootforce, '/css/bootforce-theme.min.css')}"></apex:stylesheet>
<script language="JavaScript" type="text/javascript">
$(document).ready(function(){
    //For performance reasons, the Tooltip and Popover data-apis are opt-in, meaning you must initialize them yourself.
    $("[data-toggle=tooltip").tooltip(); //not using tooltips... simply remove this line
    $("[data-toggle=popover").popover(); //not using popovers... simply remove this line
});
</script>
    <apex:pageMessages></apex:pageMessages>
    <div class="bootforce">
        <!--All content here -->
    </div>
    
    <apex:includeScript value="{!URLFOR($Resource.bootforce, '/js/jquery-2.1.1.min.js')}"></apex:includeScript>
    <apex:includeScript value="{!URLFOR($Resource.bootforce, '/js/bootstrap.min.js')}"></apex:includeScript>
</apex:page>

Combined Template

Copy the Visualforce page below to begin working with more advanced Bootstrap functionality.

<apex:page docType="html-5.0">
    <apex:stylesheet value="{!URLFOR($Resource.bootforce, '/css/bootforce.min.css')}"></apex:stylesheet>
    <apex:stylesheet value="{!URLFOR($Resource.bootforce, '/css/bootforce-theme.min.css')}"></apex:stylesheet>
<style type="text/css">
/* USING GLYPHS? You need to include these lines in order to display them properly in your Visualforce pages */
/* START: Glyph requirement */
@font-face {
    font-family: 'Glyphicons Halflings';
    src: url('{!URLFOR($Resource.bootforce, '/fonts/glyphicons-halflings-regular.eot')}');
    src: url('{!URLFOR($Resource.bootforce, '/fonts/glyphicons-halflings-regular.eot?#iefix')}') format('embedded-opentype'), url('{!URLFOR($Resource.bootforce, '/fonts/glyphicons-halflings-regular.woff')}') format('woff'), url('{!URLFOR($Resource.bootforce, '/fonts/glyphicons-halflings-regular.ttf')}') format('truetype'), url('{!URLFOR($Resource.bootforce, '/fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular')}') format('svg');
}
/* END: Glyph requirement */
</style>
<script language="JavaScript" type="text/javascript">
$(document).ready(function(){
    //For performance reasons, the Tooltip and Popover data-apis are opt-in, meaning you must initialize them yourself.
    $("[data-toggle=tooltip").tooltip(); //not using tooltips... simply remove this line
    $("[data-toggle=popover").popover(); //not using popovers... simply remove this line
});
</script>
    <apex:pageMessages></apex:pageMessages>
    <div class="bootforce">
        <!--All content here -->
    </div>
    
    <apex:includeScript value="{!URLFOR($Resource.bootforce, '/js/jquery-2.1.1.min.js')}"></apex:includeScript>
    <apex:includeScript value="{!URLFOR($Resource.bootforce, '/js/bootstrap.min.js')}"></apex:includeScript>
</apex:page>

Designed for Salesforce

Bootforce makes front-end Salesforce development faster and easier. It's made for developers of all skill levels, devices of all shapes, and projects of all sizes.

About

Bootforce lets you embed Bootstrap and JQuery frameworks and libraries into your Visualforce pages, making it easy to build visually striking Salesforce applications.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages