Content deleted Content added
No edit summary |
No edit summary |
||
| (4 intermediate revisions by the same user not shown) | |||
| Line 11: | Line 11: | ||
{{#if:{{{no toggle|}}}||<!-- Modal toggle --> |
{{#if:{{{no toggle|}}}||<!-- Modal toggle --> |
||
{{flow button|text={{{button text|Open modal}}}|action=modal|target={{{target|default-modal}}}|class={{{aditional class button|}}}|color-blue={{{button-color|yes}}}|dispaly=inline}} }}<!-- |
{{flow button|text={{{button text|Open modal}}}|action=modal|target={{{target|default-modal}}}|class={{{aditional class button|}}}|color-blue={{{button-color|yes}}}|dispaly=inline}} }}<!-- |
||
Main modal --><div id="{{{target|default-modal}}}" tabindex="-1" aria-hidden="true" class=" |
Main modal --><div id="{{{target|default-modal}}}" tabindex="-1" aria-hidden="true" class="hidden {{#if:{{{transition|}}}|opacity-transition}} overflow-y-auto overflow-x-hidden fixed top-0 right-0 left-0 z-50 justify-center items-center w-full h-full md:inset-0 h-[calc(100%-1rem)] max-h-full transition-all duration-300 ease-in-out"> |
||
<div class="relative p-4 w-full max-w-{{{width|}}} |
<div class="relative p-4 w-full max-w-{{{width|2xl}}} max-h-full"> |
||
<!-- Modal content --> |
<!-- Modal content --> |
||
<div class="relative bg-white rounded-lg shadow dark:bg-gray-700"> |
<div class="relative bg-white rounded-lg shadow dark:bg-gray-700"> |
||
{{#if: {{{modal header|}}}{{{empty header|}}}|<!-- Modal header --> |
{{#if: {{{modal header|}}}{{{empty header|}}}|<!-- Modal header --> |
||
<div class="flex items-center justify-between p-4 md:p-5 border-b rounded-t dark:border-gray-600"> |
<div class="flex items-center justify-between p-4 md:p-5 border-b rounded-t dark:border-gray-600 {{{modal-class|}}}"> |
||
<div class="h3 text-xl font-semibold text-gray-900 dark:text-white m-0">{{{modal header|}}}</div><span type="button" class="cursor-pointer text-gray-400 bg-transparent hover:bg-gray-200 hover:text-gray-900 rounded-full text-sm w-8 h-8 ms-auto inline-flex justify-center items-center dark:hover:bg-gray-600 dark:hover:text-white" data-modal-hide="{{{target|default-modal}}}">{{i|times}}<span class="sr-only">{{{modal close text|Close modal}}}</span></span></div>}} |
<div class="h3 text-xl font-semibold text-gray-900 dark:text-white m-0">{{{modal header|}}}</div><span type="button" class="cursor-pointer text-gray-400 bg-transparent hover:bg-gray-200 hover:text-gray-900 rounded-full text-sm w-8 h-8 ms-auto inline-flex justify-center items-center dark:hover:bg-gray-600 dark:hover:text-white" data-modal-hide="{{{target|default-modal}}}">{{i|{{{close icon|}}}times}}<span class="sr-only">{{{modal close text|Close modal}}}</span></span></div>}} |
||
<!-- Modal body --> |
<!-- Modal body --> |
||
<div class="p-4 md:p-5 space-y-4"> |
<div class="p-4 md:p-5 space-y-4"> |
||
| Line 114: | Line 114: | ||
"screen-xl", |
"screen-xl", |
||
"screen-2xl" |
"screen-2xl" |
||
] |
], |
||
"label": "Width of modal" |
|||
} |
}, |
||
"modal-class": {}, |
|||
"close icon": {} |
|||
}, |
}, |
||
"paramOrder": [ |
"paramOrder": [ |
||
| Line 133: | Line 136: | ||
"transition", |
"transition", |
||
"blue button", |
"blue button", |
||
"width" |
"width", |
||
"modal-class", |
|||
"close icon" |
|||
] |
] |
||
} |
} |
||
</templatedata> |
</templatedata> |
||
</noinclude> |
</noinclude>[[Category:Lisa]] |
||
[[Category:Flowbite]] |
|||
Latest revision as of 21:58, 12 December 2024
Usage:
Open modal
No description.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Modal content | content | no description | Content | required |
| hide toggle button | no toggle | no description | Boolean | suggested |
| button text | button text | no description | String | suggested |
| modal unique ID (if using multiple modals) | target | no description | String | suggested |
| aditional class button | aditional class button | no description | String | suggested |
| button-color | button-color | no description | Unknown | optional |
| modal header | modal header | no description | Unknown | optional |
| empty header | empty header | no description | Unknown | optional |
| modal close text | modal close text | no description | Unknown | optional |
| accept | accept | no description | Unknown | optional |
| gray button | gray button | no description | Unknown | optional |
| gray button action | gray button action | no description | Unknown | optional |
| gray button class | gray button class | no description | Unknown | optional |
| transition | transition | no description
| String | suggested |
| blue button | blue button | no description | Unknown | optional |
| Width of modal | width | no description
| String | optional |
| modal-class | modal-class | no description | Unknown | optional |
| close icon | close icon | no description | Unknown | optional |