当前位置: 首页 > 软件库 > 程序开发 > >

ember-power-select

The extensible select component built for ember.
授权协议 MIT License
开发语言 JavaScript
所属分类 程序开发
软件类型 开源软件
地区 不详
投 递 者 孟祯
操作系统 跨平台
开源组织
适用人群 未知
 软件概览

Ember-Power-Select

Ember Power Select is a select component written in Ember with a focus in flexibility and extensibility.

It is designed to work well with the way we build Ember apps, so it plays nicely with promises, ember-concurrency's tasks,ember-data collections and follows idiomatic patterns.

Installation

Ember Power Select 1.X works in Ember 2.3.1+, beta and canary with no deprecationswhatsoever. Any deprecation will be considered a bug.

As any other ember-cli addon, run:

ember install ember-power-select

Ember Power Select 2.X requires Ember 2.10.0+.Ember Power Select 3.X requires Ember 3.11.0+.Ember Power Select 4.X requires Ember 3.13.0+.

Features overview

Ember Power Select wants to be as agnostic as possible about how you're going to use it, but it still providessome default implementations that will match 95% of your needs, and exposes actions to customize the other5% of usages.

Features include:

  • Single select
  • Multiple select
  • HTML inside the options or the trigger.
  • Filter options sanitizing diacritics.
  • Custom matchers.
  • Asynchonous searches.
  • Theming
  • Fully promise-aware, with loading states.
  • Compatible with ember-concurrency task cancellation.
  • Compatibility with ember-data's ArrayProxies
  • Groups (with not deep limit), placeholders...
  • Clear the selection
  • Disable the component or individual options
  • CSS animations and transitions
  • ... and anything else you want. Just replace parts of the selects with your own components.

Usage

Check the full documentation with live examples at www.ember-power-select.com andplease open an issue if something doesn't work or is not clear enough.

Good docs are important :)

Extensions

Ember-power-select's focus on flexibility enables the community to build richer and more tailor madecomponents on top of it, focused in solving one particular problem, using composition.

Check the addons section to see some and if you createone that you want to open source open a PR to include it in the list.

Browser support

This addon was tested in modern browsers and there is no technical reason itwouldn't work in IE9+. If you find a problem please file an issue.

IE 'Invalid character' issue

You might run into a situation where your app doesn't work in IE11 when doing a production build with the error: Invalid character. This is due to uglifyjs stripping quotes out of object keys, and since we handle diacritics for you, those cause issues. Solution:

// ember-cli-build.js
'use strict';

const EmberApp = require('ember-cli/lib/broccoli/ember-app');

module.exports = function (defaults) {
  let app = new EmberApp(defaults, {
    'ember-cli-uglify': {
      uglify: {
        // Prevent uglify from unquoting hash keys in production builds, causes issue with diacritics in EPS
        output: {
          keep_quoted_props: true,
        },
      }
    }
  });

  return app.toTree();
}

Testing

In testing it requires phantomjs 2.0+. This component also provides some convenient test helpersto interact with the component in acceptance tests.

Contributing

Any contribution is welcome. Please read our guidelines.However, if your contribution involves adding a new feature, please open an issue before toshare your plan and agree the details of the feature before starting implementing it.

Troubleshooting

If something doesn't work visit the Troubleshootingsection of the docs first and if your problem persist open an issue, specify the version of the component,Ember and browser.

  • 在Excel早期版本中,我们必须在Com组件加载后才能载入PowerQuery的页签,而在Office 2016 版本之后,默认就存在PowerQuery组件帮助我们进行数据的导入和处理。在默认的界面中,存在着一些快速导入的界面,通过快速导入界面可以实现常规的类型的快速导入,包含并不仅限于: CSV 数据格式 Excel数据格式 WEB 数据格式 下图就是Excel中的快速导入界面,快速导入界面位

  • 通过在页面写CSS样式来隐藏: <style> #itemshield { position: relative; float: right; width: 34px; height: 750px; background: #eaeaea;

  •     A table should contain at least one column, one index, one key, and one reference. 可以不检查 Existence of index 这项,也就没有这个警告错误了! 意思是说没有给表建立索引,而一个表一般至少要有一个索引,这是一个警告,不用的话对执行没有影响~

  • 阅读微软BI相关文章,出现最多的就是这四个以Power的开头工具,Power Pivot,Power Query,Power View以及Power BI。相同的姓氏暗示这四兄弟来自同一家族,不同的名称又表明四兄弟的分工各有不同。So,这几个Power兄弟到底是干什么的呢? 一句话简明介绍:Power Query用来加载元数据,Power Pivot负责对数据进行建模分析,Power View则是

 相关资料
  • ember-power-datepicker This addon it's the last member of the Ember Power Project family and itcombines ember-basic-dropdown and ember-power-calendarinto a single datepicker component that exposes the

  • Ember Power Calendar Customizable Calendar Component for Ember. Disclaimer Version 0.14 of this addon requires Ember 3.11 or greater.Versions below 0.14 would work with Ember 3.0+ (and perhaps 2.12+)

  • ember-bootstrap-power-select Integrate Ember Power Select into your Ember Bootstrapforms. Compatibility Ember Power Select v4 or above Ember Bootstrap v4 or above Ember.js v3.16 or above Ember CLI v3.

  • Powerjson 是由 JSON 改进而成的数据交换格式,它将 JSON 支持了部分 JavaScript 语法,使其更加高效可用,并且解决了许多 JSON 历史遗留下来的问题。 它支持 单引号字符串, 多行字符串, 注释, 运算符, 导入文件, 导入其它 PJSON 文件 等。 Simple Demo { // 字符串 helloText: 'hello world', Mu

  • Power*Architect 是一个数据建模工具,主要用在数据仓库和数据集市的模型设计。 It allows the designer to open multiple concurrent source database connections, create and explore profiles of the source data, discover differences betwe

  • PowerPlot是一个iOS可视化类库,可以用于科学和商业领域的可视化图表绘制。可以绘制柱状图、折线图等等,是一个可以高度定制化的类库,满足开发者大部分可视化绘制需求。 [Code4App.com]