Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/joutvhu/lightning-customize-cmp


https://github.com/joutvhu/lightning-customize-cmp

component javascript lightning salesforce

Last synced: 1 day ago
JSON representation

Awesome Lists containing this project

README

        

# lightning-customize-cmp

## Usage Antilocker

- Add following snippet to your component
```xml

```
- Note: All operations with Antilocker need to wait to after the script loaded

### Usage EventPublisher

- Get list events
```js
Antilocker.EventPublisher.events()
```

- Publish events

```js
Antilocker.EventPublisher.publish('markup://force:navigateBack');
Antilocker.EventPublisher.publish('markup://one:back', ['refresh']);
Antilocker.EventPublisher.publish('markup://force:navigationChange', ['other', 'pageReference']);

// Using events after public

$A.getEvt('force:navigateBack').fire();

var oneBack = $A.getEvt('one:back');
oneBack.setParams({ refresh : true });
oneBack.fire();
```