1.0.10 • Published 7 years ago

areas-core v1.0.10

Weekly downloads
7
License
GPL-3.0
Repository
github
Last release
7 years ago

syn-core

Base libs for syn modules: events, dom builders, helpers, translations...

Services

Messaging

MesssagingUiInterface is provided to allow any external lib to create and set global ui messaging service.

//my-ui-service.es
import core from 'syn-core'

class MyUiMessagingService extends core.messaging.ui.interface

  confirm () {
    window.alert(options.title)
  }
//index.es
import { Messaging } from 'syn-core'
import MyUiMessagingService from './my-ui-service'

Messaging.getInstance().setUIService(new MyUiMessagingService() )