Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 719 Bytes

File metadata and controls

27 lines (20 loc) · 719 Bytes

Modal

modal holds the data for a dialog. It does not render HTML. The implementation note is modal/readme.md.

Config

Field Meaning
ID Dialog identifier.
Title Dialog title.
Size Width token.
CloseOnEsc Whether Escape closes the dialog.
CloseOnClick Whether a click outside the dialog closes it.

SizeSmall is modal-sm. SizeMedium is modal-md. SizeLarge is modal-lg.

DefaultConfig(id, title) sets those two fields, SizeMedium, and both close flags to true.