简体   繁体   中英

Change NEXT button position of Primefaces WIZARD component

Is there any option to change the position of NEXT button of Primefaces WIZARD component? My wizard started with the following.

<p:wizard flowListener="#{employeeRepositoryImpl.handleFlow}"
showNavBar="true" widgetVar="scheduler" showStepStatus="false">
</p:wizard>

In case css fits you well you can always do some thing like this:

<h:head>
    <script type="text/javascript"> 
        jQuery(document).ready(function($) {
            jQuery('[id$="_next"]').css('right', 200) ;
        });
    </script>
</h:head>

instead of right you can use left , top ... etc , you also can mix couple of them together...

btw , jQuery('[id$="_next"]') is a selector that finds the next button in the page

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM