Closed jaunesarmiento closed 11 years ago
TODO: add an example of the dialog on index.html
Will test that !
Oh I have a question, Since you use scss, why do you implement transitions and other css3 features "by hand" ? Don't you want to use compass mixins ? Just a question, I'm no expert on that really.
I still haven't decided on which to use LOL. Now that you've mentioned it, I'll see which available mixins are viable. :)
That's a good point :)
Implemented dialogs. This pull request exposes a
Dialog
class in thefries
namespace with the ff methods:init()
- called when you donew fries.Dialog(options);
. Initialises the dialog along with theoptions
object. The dialog is initially hidden. Just callshow()
when you need to display the dialog.show()
- Shows the dialog.hide()
- Hides the dialog.An example of the
options
object is as follows:Notes:
selector
parameter. So if you need to create multiple dialogs, you need to callnew fries.Dialog()
on each of those elements for now.okCallback
andcancelCallback
are optional parameters. Although it would seem pointless not to add anokCallback
.