jsmithdev / alert-modal

A modal to alert a user to something utilizing the app builder (LWC)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

alert-modal

A modal to alert a user to something utilizing the app builder (LWC)

screenshot

Properties

title

  • Title for modal
  • String
  • defaults to: Default Text

body

  • Text for modal body
  • String
  • defaults to: Default Text

field_to_check *

  • Object & Field API Name to check
  • String
  • Object.Field to check if true. Example: User.IsActive on a User record. Can be a checkbox formula

size

  • Size of the modal
  • String (small || medium || large)
  • Defaults to small

variant

  • Color variant of the header
  • String (neutral || info || success || error)
  • Defaults to neutral

[*] Required

Deploy

Covert with SFDX; This creates a folder called deploy

sfdx force:source:convert -r force-app -d deploy

Now you can deploy from the resulting deploy directory

sfdx force:mdapi:deploy -d deploy -w -1  --verbose 

πŸ“Œ Above deploys to the default org set

  • Add -u user@domain.com or -u alias to deploy elsewhere
  • To run tests add -l RunSpecifiedTests -r ApexTestName

Results should more or less mirror below

Job ID | 0Af1U000016lG6PSAU

MDAPI PROGRESS | β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ | 2/2 Components

                                                         NAME         ID
────────────────────────  ─────────────────────────────  ───────────  ──────────────────
                          deploy/package.xml             package.xml
ApexClass                 deploy/classes/AlertModal.cls  AlertModal   01p1U00000QWjfrQAD
LightningComponentBundle  deploy/lwc/alertModal          alertModal   0Rb1U000000PKxwSAG

About

A modal to alert a user to something utilizing the app builder (LWC)


Languages

Language:JavaScript 55.1%Language:HTML 27.0%Language:Apex 13.6%Language:CSS 4.2%