Commit 4bb14988 authored by Robert Schönthal's avatar Robert Schönthal
Browse files

add state check methods

parent 79f94ec2
......@@ -210,7 +210,7 @@ scss:
style: double_quotes
TrailingSemicolon:
enabled: true
enabled: false
TrailingWhitespace:
enabled: true
......
......@@ -145,6 +145,30 @@ class mdDateTimePicker {
this._showDialog()
}
/**
* [isOpen check if current Picker is open]
*
* @method isOpen
*
*/
isOpen() {
this._selectDialog()
return !!mdDateTimePicker.dialog.state
}
/**
* [isCloses check if current Picker is closed]
*
* @method isClosed
*
*/
isClosed() {
this._selectDialog()
return !mdDateTimePicker.dialog.state
}
/**
* [toggle toggle the dialog's between the visible and invisible state]
*
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment