Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Passing params to BS modal() function #7

Closed
rebutatul opened this issue Apr 29, 2015 · 1 comment
Closed

Passing params to BS modal() function #7

rebutatul opened this issue Apr 29, 2015 · 1 comment

Comments

@rebutatul
Copy link

function build(message, params) should return:
return $modal.modal(params);

instead of
return $modal.modal(options);

@saribe
Copy link
Owner

saribe commented May 1, 2015

Hi, the params and options are differents objects:

@params allowed elements:
/// title {string}: The header title string.
/// message {string|object}: The body message string or the html element. e,g: $(selector);
/// subtitle {string}: The header subtitle string. This appear in a smaller text.
/// size {string}: sm || lg -> define the modal size.
/// loading {bool}: set loading progress as message.
/// useBin {bool}: set message as recyclable.
/// css {object}: css object try apply into message body; only able if message == string
/// buttons {array}: An array of objects to configure buttons to modal footer; only able if message == string
///

and options is the bootstrap modal options,

if you need to set options you should use eModal.setModalOptions({...})

the {...} object will be used as default in all next modal dialogs...

Please let me know if you need help or some tune in eModal.js!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants