Skip to content

Template confirm messages

Compare
Choose a tag to compare
@programcsharp programcsharp released this 02 Sep 18:00
· 441 commits to master since this release

Confirm messages are now templatable, using a ${} syntax. The following replacements are supported:

  • ${count} -- the count of selected items
  • ${singular:something} -- the text after the : will be used when count == 1
  • ${plural:somethings} -- the text after the : will be used when count != 1

So you can do a template like: confirmMessage: "Do you want to delete ${count} ${singular:something}{$plural:somethings}?"

confirmMessage is also now an accepted parameter on settings.Button()

This resolves #54.