Skip to content

Simpler call interface - #22

Open
vanderlee wants to merge 1 commit into
techatspree:masterfrom
vanderlee:master
Open

Simpler call interface#22
vanderlee wants to merge 1 commit into
techatspree:masterfrom
vanderlee:master

Conversation

@vanderlee

Copy link
Copy Markdown

The current call interface (API) to toastmessage is somewhat uncommon and needlessly complicated. This is my simplified interface

Current:
$().toastmessage('showNoticeToast', 'some message here');

In my version:
$.toastmessage('notice', 'some message here');

Basically, it rids of the uncommon and wasteful '$()' notation and shortens the 'method' strings.

Additionally, you can now add a boolean to indicate stickyness. I use this particular switch for half the messages and this way I don't have to drop down to the object-using syntax.

@LorenDorez

Copy link
Copy Markdown

I Agree with @vanderlee

Also something like $.toastmessage.Notice('some message here'); would be even better.

@alesnav

alesnav commented Jun 15, 2014

Copy link
Copy Markdown

I think this should be merged...

@dbremer-tonn , is this dead?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants