Skip to content

Commit

Permalink
adding notify example
Browse files Browse the repository at this point in the history
  • Loading branch information
tuttza committed Aug 22, 2021
1 parent 148fea5 commit 3d88349
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions examples/notify_example.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
require '../lib/mittens_ui'

app_options = {
name: "notify_example",
title: "Notify This",
height: 615,
width: 570,
can_resize: true
}.freeze


MittensUi::Application.Window(app_options) do
btn = MittensUi::Button.new(title: "Notify Me")
btn.render

btn.click do
MittensUi::Notify.new("Updated!", type: :question).render
end
end

0 comments on commit 3d88349

Please sign in to comment.