@slickgrid-universal/vanilla-force-bundle
v11.0.0
Published
Vanilla Slick Grid Bundle (mostly exist for our Salesforce implementation) - Similar to Vanilla Bundle, the only difference is that it adds extra packages within its bundle (CustomTooltip, CompositeEditor & TextExport)
Readme
Vanilla Force Bundle
@slickgrid-universal/vanilla-force-bundle
Vanilla Force Bundle is similar to the Vanilla Bundle but oriented towards a Salesforce (LWC) implementation which requires an all-in-1 bundle (zip) with all necessary package loaded at once. So this package is very similar to the @slickgrid-universal/vanilla-bundle, it actually extends from it, with the only difference that it imports and includes 3 extra packages (which are optional in the vanilla-bundle but required for our Salesforce implementation) and those are:
- CompositeEditor
- CustomTooltip
- TextExport (CSV))
This package does what other framework would do, that is to make all the features usable into 1 bundle so that it could then be used by other Apps/Projects, for example we use this bundle in our SalesForce (with Lighning Web Component) App and it requires plain ES6 JavaScript which this bundle also produce (for that there's a dist-grid-bundle-zip folder which will zip the ES6 dist folder which we then import in our SalesForce implementation as a static resource).
Installation
This Vanilla Bundle is used in our SalesForce implementation (since it requires plain ES6) and is also used by the standalone demos/vanilla which serves for demo purposes.
Go to the root of the repo and follow the instructions provided in the main README
Salesforce Installation
Consult the Installation, Salesforce - Wiki for more info.
Salesforce tab resize recovery
VanillaForceGridBundle uses SalesforceResizerService to recover a grid initially rendered in a hidden Salesforce tab. Enable the Salesforce defaults to enable this polling workaround:
import { VanillaForceGridBundle, type SalesforceGridOption } from '@slickgrid-universal/vanilla-force-bundle';
const options: SalesforceGridOption = {
useSalesforceDefaultGridOptions: true,
enableAutoResize: true,
autoResize: { container: '#grid-container' },
autoFixResizeRequiredGoodCount: 1,
};The autoFixResizeWhenBrokenStyleDetected, autoFixResizeTimeout, and autoFixResizeRequiredGoodCount options now belong to SalesforceGridOption, rather than the shared GridOption. Existing option names and Salesforce defaults are unchanged. Vanilla example 12 uses this bundle and retains its override.
The polling controls intervalRetryDelay and requestStopOfAutoFixResizeGrid() now belong to SalesforceResizerService. Applications using these controls should use that service type. The shared resizer and framework wrappers no longer run Salesforce recovery. An explicitly injected resizer is still honored; inject a SalesforceResizerService when recovery is required with custom services.
