File: src/packages/common/components/flash/constants/default.js

Recommend this page to a friend!
  Classes of Alien Fernandez   Seed Sails Angular   src/packages/common/components/flash/constants/default.js   Download  
File: src/packages/common/components/flash/constants/default.js
Role: Example script
Content type: text/plain
Description: Example script
Class: Seed Sails Angular
Full stack framework based on Sails, Node, Angular
Author: By
Last change: Update of src/packages/common/components/flash/constants/default.js
Date: 2 years ago
Size: 1,105 bytes


Class file image Download
import commonModule from '../../../commonModule'; import Constant from '../../../components/core/Constant'; let flashConst = { POSITION: { BOTTOM_CENTER: {cls: 'toast-bottom-center', value: 0}, BOTTOM_FULL_WIDTH: {cls: 'toast-bottom-full-width', value: 1}, BOTTOM_LEFT: {value: 'toast-bottom-left', value: 2}, BOTTOM_RIGHT: {cls: 'toast-bottom-right', value: 3}, TOP_CENTER: {cls: 'toast-top-center', value: 4}, TOP_FULL_WITH: {cls: 'toast-top-full-width', value: 5}, TOP_LEFT: {cls: 'toast-top-left', value: 6}, TOP_RIGHT: {cls: 'toast-top-right', value: 7} }, MESSAGE_TYPE: { SUCCESS: { NAME: "Success", CODE: 1 }, INFO: { NAME: "Info", CODE: 2 }, WARNING: { NAME: "Warning", CODE: 3 }, ERROR: { NAME: "Error", CODE: 4 } } } const flashConstant = new Constant(flashConst); commonModule.constant('$flashConstants', flashConstant); export default commonModule;