LogoLogo
  • Introduction
    • 👋Overview
    • 🤷Target Audience
    • ✨Features
  • Getting started
    • đŸ–Ĩī¸System Requirements
    • đŸ“ĻInstallation
    • âš™ī¸Configuration
    • 🔧Setup Routine
  • Fundementals
    • 🎎Roles
    • 🌏Countries and time zones
    • â™ģī¸Scheduletask concept
    • 💰Payment Service Provider
    • âœī¸Administration
      • đŸ”ĩSales
        • đŸ‘ĨCustomers
        • đŸ“ĨInvoices
        • 📋Plans
        • 🧊Modules
      • đŸŸĸSystem
        • đŸŽ›ī¸System settings
        • â›“ī¸API Settings
        • 🌐Languages
        • đŸĒ™Currencies
        • đŸŗī¸Countries
        • 📂Mappings
        • đŸ’ŦTranslations
        • đŸĒ§Widgets
    • đŸ–ąī¸User guide
      • 🔐Customer rights
      • 🔗Customer Navigation
      • 📃Edit profile
      • 🔑Reset password
      • 🏨Edit company
      • ⚡Manage users
      • 👔Manage tenants
      • 📨View invoices
      • 💸Add payment method
      • đŸĒ§Manage plans
      • đŸ“ĻManage modules
      • 🔔Notifications
  • Development
    • đŸ› ī¸Local development
    • 📂Folder structure
      • đŸ—„ī¸Application.cfc
    • 💡Develop with saaster
      • 🎇General services
        • đŸ’ŧMappings and rigths management
        • â†Šī¸Redirects
        • 👤Customer specific sessions
        • ã€Ŋī¸Global variable "getCustomerData"
      • 🌐Global functions
        • âš™ī¸getTrans()
        • âš™ī¸getAlert()
        • âš™ī¸logWrite()
        • âš™ī¸getTime()
      • 🧊Developing the main application
      • đŸ“ĻDeveloping modules
  • API
    • âš’ī¸API: Get started
    • 📂Resources
      • 📄authenticate
      • 📄getCurrentModules
      • 📄getCurrentPlan
      • 📄getPlanFeatureSetting
Powered by GitBook
On this page
  1. Development
  2. Develop with saaster
  3. Global functions

getAlert()

Global function getAlert()

Messages can be displayed with the function getAlert(). Let's say you want to display the message "Your change has been successfully saved" in a green bar, then use the function as follows:

getAlert('Your change has been successfully saved')

You can also work with the language variables from the table "system_translations" as well as "custom_translations" here, or with your own sentences. If you want to use such a language variable, simply write:

getAlert('txtActivateThisUser')

You can also specify the color of the bar by adding one of the following attributes:

  • info (blue)

  • warning (orange)

  • danger (red)

  • success (default, green)

Example:

getAlert('alertErrorOccured', 'danger')

Without any attribute, green (success) is used by default.

PreviousgetTrans()NextlogWrite()

Last updated 2 years ago

💡
🌐
âš™ī¸