NOTIFICATION

COMPONENT NOTIFICATION

HOMEWORKS 노티피케이션 컴포넌트.


Summary

NOTIFICATION은 단발적인 푸시형태의 메시지를 사용자에게 보여줄 수 있는 컴포넌트입니다.

이미지 정보나, 이동할 링크, 사용자 이벤트를 수신할 수 있도록 제공되어 있습니다.


Question

Q. TOAST 컴포넌트와 다른점이 뭔가요?

A. TOAST는 Single Line 메시지에 적합하며, 메시지 정보만을 전달하는 컴포넌트입니다. NOTIFICATION은 이미지 정보를 포함하거나, 유저가 해당 메시지에 대해서 특정 액션을 취할 수 있습니다.


Usage

  • HTML

  • JAVASCRIPT

    var data = {
      title: 'Notification Title',
      message: 'Notification Message',
      url: 'http://www.navigation_url_to_move_when_user_action.com',
      status: 'primary' // primary, danger
    };
    notification(data.title, data.message, data.url, data.status);
    

Functions

Notification

  • Type: Function
  • Description: Notification을 초기화하는 함수.
  • Arguments:

    • title: string
    • content: string
    • url: string (optional)
    • status: string (optional)

results matching ""

    No results matching ""