How to use the plugin's js-behavior options? #434
-
https://preline.co/plugins/html/dropdown.html#js-behavior |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
This should be documented better, but whenever you see the <div style="--placement: top-left;"></div> However, assuming you are using TailwindCSS, you can use Tailwind's shorthand notation for using arbitrary CSS properties, like so: <div class="[--placement:top-left]"></div> The documentation uses Tailwind's shorthand notation, so whenever you see an option wrapped in |
Beta Was this translation helpful? Give feedback.
This should be documented better, but whenever you see the
[--xxxxx]
format, these are intended to be CSS styles. As an example, you can do the following:However, assuming you are using TailwindCSS, you can use Tailwind's shorthand notation for using arbitrary CSS properties, like so:
The documentation uses Tailwind's shorthand notation, so whenever you see an option wrapped in
[]
it is likely to be applied this way. Hope it helps.