首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏代码人生

    ui-select官方教程(二)——ui-select指令

    ui-select指令 ui-select的指令和事件 属性 选项 描述 值 默认值 multiple 多选,直接加上multiple属性 close-on-select 在多选情况下,选中一项,就关闭下拉项 someFunction($item, $model)" on-select 当项被选中时发生 on-select="someFunction($item, $model)" 全局配置 你可以使用全局配置来配置你的ui-select = 'bootstrap'; uiSelectConfig.resetSearchInput = true; uiSelectConfig.appendToBody= true; }); 主题 ui-select </ui-select> 添加引用 使用主题需要应用相应css 主题: bootstrap 文件: <link rel="stylesheet"href="bower_components/bootstrap

    3.3K10发布于 2019-10-30
  • 来自专栏前端知识分享

    Angular中ui-select的使用

    Angular中ui-select的使用 最近工作一直很忙,没有时间整理知识,前几天项目中需要用到angular-ui-select,实现下拉框快速过滤效果,今天有时间研究了一下,终于搞明白了。 注意引入的先后顺序 2.html代码 1 <ui-select ng-model="$parent.test" theme="bootstrap" style="min-width: 300px;" s.name | highlight: $select.search">

    8 9 </ui-select-choices> 10 11 </ui-select 当然ui-select不止这一种用法,还有许多意想不到的功能。本实例和其他功能实现在github:https://github.com/lela520/angular-ui-select。

    4.4K60发布于 2018-09-11
  • 来自专栏代码人生

    ui-select官方教程(一)——入门简介

    文档原文地址 https://github.com/angular-ui/ui-select/wiki 入门指南 简介 ui-select是AngularJS官方制作的下拉框插件,和AngularJS搭配使用 引入文件 select.js select.css 在你的appliction的modules中包含ui-select、ngSanitize模块 var module = angular.module( 'myapp',['ui.select', 'ngSanitize']); 基本例子 html代码 <ui-select ng-model="selected.value"> <ui-select-match ) track by item.id"> </ui-select-choices> </ui-select > ui-select是控件的主标签,它包含数据绑定和空间的基本设置。

    3.5K10发布于 2019-10-30
  • 来自专栏前端小叙

    select自定义小三角样式

    使用加息券或现金券 <option value="40元现金券">40元现金券</option> </select>
    .ui-select height:63px; line-height:33px; opacity: 0; position: absolute; top:0; left:0; } $(".ui-select

    1.1K60发布于 2018-04-12
  • 来自专栏快乐八哥

    Angular企业级开发(6)-使用Gulp构建和打包前端项目

    task代码如下: gulp.task('vendor', function () { gulp.src([ 'app/assets/bower_components/ui-select assets/bower_components/angular-sanitize/angular-sanitize.min.js', 'app/assets/bower_components/ui-select

    2.5K50发布于 2018-01-18
  • 领券