17 parent::__construct($js);
18 $this->uiName=
"modal";
21 public function attach($identifier) {
22 parent::attach($identifier);
23 $this->js->addClass($identifier,
"modal",
true);
24 $this->js->attr($identifier,
"role",
"dialog",
true);
25 $this->js->attr($identifier,
"aria-labelledby",
"myModalLabel",
true);
26 $this->js->attr($identifier,
"aria-hidden",
"true",
true);
35 return $this->
setParam(
"show", $value);
45 return $this->
setParam(
"backdrop", $value);
54 return $this->
setParam(
"keyboard", $value);
59 $this->jsCodes [
"draggable"]=
new Draggable();
61 }
else if (array_key_exists(
"draggable", $this->jsCodes)) {
62 unset($this->jsCodes [
"draggable"]);
63 unset($this->params [
"backdrop"]);
74 return $this->
addEvent(
"show.bs.modal", $jsCode);
84 return $this->
addEvent(
"shown.bs.modal", $jsCode);
93 return $this->
addEvent(
"hide.bs.modal", $jsCode);
102 return $this->
addEvent(
"hidden.bs.modal", $jsCode);
111 return $this->
addEvent(
"loaded.bs.modal", $jsCode);
Composant Twitter Bootstrap Modal.
setShow($value)
Shows the modal when initialized.
onLoaded($jsCode)
This event is fired when the modal has loaded content using the remote option.
onShown($jsCode)
This event is fired when the modal has been made visible to the user (will wait for CSS transitions t...
onHidden($jsCode)
This event is fired when the modal has finished being hidden from the user (will wait for CSS transit...
setKeyboard($value)
Closes the modal when escape key is pressed.
onShow($jsCode)
This event fires immediately when the show instance method is called.
addEvent($event, $jsCode)
onHide($jsCode)
This event is fired immediately when the hide instance method has been called.
setBackdrop($value)
Includes a modal-backdrop element.