This commit is contained in:
Jan Faracik committed 2023-12-10 16:04:28 +00:00
1 parent a4c7f4f28c
commit 4cc43e47f9
4 files changed
+13 -12

No files matched your search

@@ -23,9 +23,9 @@ THE SOFTWARE.
-->
<?jelly escape-by-default='true'?>
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:l="/lib/layout" xmlns:d="jelly:define">
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define">
<st:documentation>
Allows for custom components inside of dropdowns
</st:documentation>
<template data-dropdown-type="CUSTOM">
@@ -26,13 +26,16 @@ THE SOFTWARE.
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:l="/lib/layout">
<st:documentation>
<st:attribute name="icon">
Optional icon to be used for the button, defaults to three dots
Icon to be used for the menu item
</st:attribute>
<st:attribute name="text">
Optional text to be displayed on the button
Text to be displayed on the menu item
</st:attribute>
<st:attribute name="id">
Optional ID for the button
Optional ID for the menu item
</st:attribute>
<st:attribute name="href">
Optional HREF for the menu item
</st:attribute>
</st:documentation>
@@ -42,8 +45,8 @@ THE SOFTWARE.
<template data-dropdown-type="ITEM"
data-dropdown-id="${attrs.id}"
data-dropdown-icon="${icon}"
data-dropdown-text="${attrs.text}"
data-dropdown-href="${attrs.href}"
data-dropdown-icon="${icon}"
/>
</j:jelly>
@@ -24,9 +24,5 @@ THE SOFTWARE.
<?jelly escape-by-default='true'?>
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler">
<st:documentation>
</st:documentation>
<template data-dropdown-type="SEPARATOR" />
</j:jelly>
@@ -26,11 +26,13 @@ THE SOFTWARE.
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define" xmlns:l="/lib/layout">
<st:documentation>
<st:attribute name="icon">
Optional icon to be used for the button, defaults to three dots
Icon to be used for the menu item
</st:attribute>
<st:attribute name="text">
Optional text to be displayed on the button
Text to be displayed on the menu item
</st:attribute>
Displays the contents as a submenu to a menu item
</st:documentation>
<j:set var="icon">