(Imported by WSPageSync)
 
(Imported by PageSync)
Tag: Metadata slot edit
 
Line 1: Line 1:
<noinclude>{{Managed
+
<noinclude>
|Version=1.0.1
 
|Version notes=1.0.1. - Updated the template documentation a bit
 
1.0 - First managed version
 
|Short description=Template for a bootstrap modal (optionally with a link to open the modal)
 
|Feature=Wiki:Feature/1530870851
 
|Status=Live
 
|Uses managed items=}}
 
 
 
 
==Parameters==
 
==Parameters==
 
<pre>
 
<pre>
ws-base-props
Line 1: Line 1:
 
+
{{Base properties
 +
|Class=Application page
 +
|Title=Template:Modal
 +
|Version history={{Version history item
 +
|Version number=1.0
 +
|Version description=Initial version
 +
|Version date=2022-11-28 11:32:11
 +
}}
 +
}}
ws-class-props
Line 1: Line 1:
 
+
{{Application page properties
 +
|Type=CSP Basis Core
 +
|Origin=CSP Basis
 +
}}

Latest revision as of 13:46, 18 January 2023

Parameters

{{Modal
|Targetid= <id> of the modal div, also used for the button that links to it. e.g. "myModal", "myModal1", "myModal2"
|ButtonText= <text> text for button that links to modal 
|ButtonClass= <class> class for button that links to modal. defaults to btn btn-success btn-sm
|TargetClass=defaults to modal fade
|Show modal header= <optional: "No"> to hide the modal header (default Yes)
|ModalHeading=
|BodyClass=defaults to modal-body
|BodyText=
|FooterText=
|VisitPage=
|contentstyle=add class and/or style (default: class="modal-content")
|width=
|Hide link=<optional: "Yes"> if you do not want this template to generate a link to your modal
}}
test
This is a sick modal m8

Example modal with custom :

{{#widget:Button link |href=#test-modal |datatoggle=modal |class=btn btn-primary |buttontext=Link}}

{{Modal
|Targetid=test-modal
|ModalHeading=My modal header
|BodyText=text fdfsafs
afsfas
sdfsd
|FooterText=Footertext with close button! {{#widget:Button link |type=a |href=#test-modal |datatoggle=modal |class=btn btn-default |buttontext=X}}
|Hide link=Yes
}}