Can we add more button types/styles in Fragments?
How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!
While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.
Legacy Article
You are viewing an article from our legacy "FastTrack"
publication program, made available for informational purposes. Articles
in this program were published without a requirement for independent
editing or verification and are provided"as is" without
guarantee.
Before using any information from this article, independently verify its
suitability for your situation and project.
Issue
-
Is there a way to change the available options in the button type dropdown? E.g. can we add more button styles to fragments?

Resolution
-
Bootstrap provides several additional button styles, like btn-success, btn-info, btn-warning etc. See the full list on this link. Only a few of these options are available in Liferay out of the box.
- Liferay is developed with the use of ClayUI. Clay is Liferay's web implementation of the Lexicon Experience Language. Built with Bootstrap as a foundation, it's comprised of HTML, CSS, and JS. See the source code on this github link.
-
Adding more button styles to ClayUI can be done only by customisation, because it is currently a limitation of the out of the box feature. See this link for buttons of ClayUI.
- The variations of buttons you can create with the Clay taglibs are described here.
- To map your custom button classes to Clay CSS button classes see this github link.
- If you consider this to be a useful feature for our product you also have the option to open a feature request.
Did this article resolve your issue ?