From 82782269ef7105f047745f85fb74590703145701 Mon Sep 17 00:00:00 2001 From: Thomas Jang Date: Mon, 4 Apr 2016 00:43:33 +0900 Subject: [PATCH] minor fix --- API.md | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/API.md b/API.md index fb90f56..622f3e6 100644 --- a/API.md +++ b/API.md @@ -137,4 +137,19 @@ modal.align({left:"left", top:"top", margin: 20}); - - - ## close() -`close()` \ No newline at end of file +`close()` + +- - - + +## onStateChanged + +Type: `Function` + +`onStateChanged` function can be defined in setConfig method or new ax5.ui.modal initialization method. +However, you can us to define an event function after initialization, if necessary + +```js +modal.onStateChanged = function(){ + console.log(this); +} +``` \ No newline at end of file