Last active
December 15, 2015 12:28
-
-
Save eduardolundgren/5259920 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var StdMod = A.WidgetStdMod, | |
getClassName = A.getClassName; | |
A.Modal = A.Base.create('modal', A.Widget, [ | |
A.WidgetPosition, | |
A.WidgetStdMod, | |
A.WidgetAutohide, | |
A.WidgetButtons, | |
A.WidgetModality, | |
A.WidgetPositionAlign, | |
A.WidgetPositionConstrain, | |
A.WidgetStack | |
], { | |
BUTTONS: { | |
close: { | |
label : 'Close', | |
action : 'hide', | |
section: 'header', | |
template : '<button type="button" />', | |
classNames: getClassName('btn', 'close') | |
} | |
} | |
}, { | |
CSS_PREFIX: getClassName('modal'), | |
ATTRS: { | |
buttons: { | |
value: ['close'] | |
} | |
} | |
}); | |
A.Modal.SECTION_CLASS_NAMES = { | |
header: A.Widget.getClassName('hd1'), | |
body: A.Widget.getClassName('bd1'), | |
footer: A.Widget.getClassName('ft1') | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment