In This Section
- Concepts
- Data
- Build
- The App Composer
- Pages
- Models
- Components
- Best Practices
- Debugging Skuid in the Console
- Logic
- Style
- Deploy
- Extend
- Reference
- API Reference
- skuid.$
- skuid.actions
- skuid.ajax
- skuid.builder.core
- skuid.builder.core.coreProps
- skuid.calendar
- skuid.collaboration
- skuid.component
- skuid.componentType
- skuid.events
- skuid.formula
- skuid.hotkeys
- skuid.label
- skuid.lightning
- skuid.load
- skuid.model
- skuid.model.Model
- skuid.mustache
- skuid.page
- skuid.sfdc
- skuid.snippet
- skuid.time
- skuid.ui
- skuid.utils
- skuid.version
- Component-Specific APIs
- Skuid Model Metadata Object
- Skuid Model Child Relationship Metadata Object
- Skuid Model Condition Metadata Object
- Skuid Model Field Metadata Object
- Skuid Model Record Type Metadata Object
- Page XML API
- skuid CLI
- Skuid Metadata Object Reference
- Skuid Glossary
- API Reference
- Site Administration
- Tutorials
- Skuid Page Tutorials
- Add Related Lists with the Table Component
- Build an Activities Related List Tab
- Build a Custom “Create New Record” Page
- Build a Custom Detail Page
- Build a Custom List Page
- Compose a Branded Header and Navigation
- Compose a One-Page App Using Tab Actions and Conditional Rendering
- Conditionally Display Fields
- Create a Custom Clone Page
- Create a Custom “Clone Account” page
- Highlight Critical Data: Wrappers, Rich Text, and Ui-Only Fields
- Mass Create Records
- Show Products in an Opportunity Page
- Skuid Pages for standard Salesforce CRM
- Salesforce Tutorials
- Add Product Line Items to Opportunities with a Popup
- Add Gmail to Salesforce functionality in your email fields
- Create a Custom Edit Page and Set Visualforce Overrides
- Getting Help: Grant Skuid Login Rights to your Org
- Reclaim the Salesforce Home Page
- Redirect to Salesforce Processes
- Skuid for Sales: A Turn-Key Template to Augment Lightning Sales Cloud
- JavaScript Tutorials
- Skuid Page Tutorials
- Legal terms and conditions
- Skuid for Salesforce Evaluation Guide
In This Topic
skuid.lightning¶
-
skuid.lightning.
workspaceAPI
¶ A representation of the Salesforce Lightning Workspace API of the current Lightning page. Only available to Skuid snippets and inline JavaScript when running Skuid within Lightning.
As this is an access point for the Lightning Workspace API, see Salesforce’s Workspace API documentation for a list of available methods.
1 2 3 4 5 6 7 8 9 10 11 12 13 14
// Creating a reference to the Workspace API var api = skuid.lightning.workspaceAPI; // Accessing the workspace API to retrieve // information on currently open workspace tabs, // then using the returned array to close the first tab. // This is done using two Workspace API methods, // getAllTabInfo() and closeTab(). For more information, // see the linked Salesforce docs above. return api.getAllTabInfo().then(tabInfo => { return api.closeTab({ tabId: tabInfo[0].tabId }); });