adamantium perfect scrollbar

Post Reply
marcelocaser
Posts: 74
Joined: 13 Dec 2011, 15:07

11 Aug 2016, 04:56

Hi,

It is possible use "perfect scrollbar" in <p:selectOneMenu />???

If yes, how?? :mrgreen:

thks

User avatar
aragorn
Posts: 3286
Joined: 29 Jun 2013, 12:38

16 Aug 2016, 12:53

Please try;

Code: Select all

<style type="text/css">
    .test.ui-selectonemenu-panel .ui-selectonemenu-items-wrapper {
        overflow: visible;
    }
</style>
<script type="text/javascript">
    $(window).load(function(){
        var $this = PF('OneMenuWidget');

        if($this) {
            $this.triggers.on('click', function() {
                $this.panel.perfectScrollbar({suppressScrollX: true});
            });
        }
    });
</script>

<p:selectOneMenu widgetVar="OneMenuWidget" panelStyleClass="test" ../>

Post Reply

Return to “Adamantium”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest