简体   繁体   中英

angularjs selectBoxIt customize theme

I use selectBoxIt component in my project. And I would like change style, like this: 在此处输入图片说明

And I use next code for implement this component:

 <select id="appVersions">
            <option ng-repeat="app in appVersions" value="{{app.version}}">APP vr.{{app.version}}</option>
          </select>



  var apps = $('#appVersions').selectBoxIt({
                        theme: 'jqueryui',
                        autoWidth: true
                    });

                    $timeout(function () {
                        apps.data('selectBox-selectBoxIt').refresh();
                    });

But after it he transform to default style, how to change style? Thanks a lot.

Add id to tags select

#appVersions .selectboxit-container {
    margin-top: 10px;
    margin-left: 70px;
    background-color: $main-background;
  }

  #appVersions .selectboxit-container span #SelectBoxItText {
    color: #FFB201;
    font-weight: bold;
  }

  #appVersions ul li a {
    color: #FFB201;
  }

  #appVersions ul li a:hover {
    font-weight: bold;
  }

  #appVersions ul {
    background-color: $main-background;
  }

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