Merge pull request #11654 from sethlu/set-notification-close-button-text

feat: Set macOS notification close button title
This commit is contained in:
Cheng Zhao 2018-02-15 16:01:30 +09:00 committed by GitHub
commit af92b04eb9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 133 additions and 21 deletions

View file

@ -39,7 +39,7 @@ Returns `Boolean` - Whether or not desktop notifications are supported on the cu
* `replyPlaceholder` String (optional) _macOS_ - The placeholder to write in the inline reply input field.
* `sound` String (optional) _macOS_ - The name of the sound file to play when the notification is shown.
* `actions` [NotificationAction[]](structures/notification-action.md) (optional) _macOS_ - Actions to add to the notification. Please read the available actions and limitations in the `NotificationAction` documentation.
* `closeButtonText` String (optional) _macOS_ - A custom title for the close button of an alert. An empty string will cause the default localized text to be used.
### Instance Events