This application demonstrates Bryntum components in Salesforce environment.
This app creates 6 static resources, 6 Lightning Web Components and a Lightning Bryntum
App. There is an LWC
for every Bryntum product: Grid, Scheduler, SchedulerPro, Gantt, Taskboard and Calendar. Each LWC uses
bundle-specific static resource. By default app uses dummy resource, to enable LWC you need to create
proper resource (see below for instructions)
Setup is divided into two steps:
-
Set up your environment:
- Enable Dev Hub in your Salesforce Org
- Install Salesforce CLI
- Install Visual Studio Code
- Install the Visual Studio Code Salesforce extensions, including the Lightning Web Components extension
-
If you haven't already done so, authorize your hub org and provide it with an alias (myorg in the command below):
sfdx auth:web:login -d -a myorg
-
Clone this repository:
git clone https://github.com/bryntum/bryntum-salesforce-showcase cd bryntum-salesforce-showcase
-
Create a scratch org and provide it with an alias (bryntum-demo in the command below):
sfdx force:org:create -s -f config/project-scratch-def.json -a bryntum-demo
-
Push the app to your scratch org:
sfdx force:source:push
-
Assign the bryntum-demo permission set to the default user:
sfdx force:user:permset:assign -n bryntumdemo
-
Open the scratch org:
sfdx force:org:open
-
In App Launcher, select the Bryntum app.
By default this app uses mocked resources. Lightning Web Components could be loaded but will not be functional. To enable them you need to create a proper static resource. Either from trial or licensed source code.
To create a Grid static resource follow these steps:
-
Download source code.
You can get it from customer zone, NPM or trial version from site
-
Update static resource
Locate
staticresources/bryntum_grid
directory and copy contents from the distributable to static resource:- fonts/ - locales/ - grid.stockholm.css - This is a default theme and it is imported by LWC - grid.lwc.module.js
-
Upload static resource
sfdx force:source:deploy --sourcepath force-app/main/default/staticresources/bryntum_grid.resource-meta.xml