npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

angular-transfer-box

v1.4.0

Published

Angular Directive for Component Tranfer in antd

Readme

#Angular Transfer Box

Angular Transfer Box was created to address a common demand that choose some data from a list-like collection. Aspired by famous React-ANTD which contains a transfer box also, angular-transfer-box was written with angular to achieve the similar effect.

Requirement: AngularJS 1.3+

File Size: v1.4.0

  • js: raw 14.1kb, minfied 7.28kb
  • css: 5.18kb

#Installation

npm install angular-transfer-box --save-dev

#Demo

  • change your current workspace to node_modules/angular-transfer-box

  • open the demo/index.html

#Principle

angular-transfer-box composed by two transfer-list components and a transfer-operation component. Each transfer-list can display its data and transfer-operation can move data between these two list.

angular-transfer-box can only handle array-collection data source. Each item in this data source should contains a property key that would be used to keep its unique. Thus, a regular data source that angular-transfer-box will success render should conform to the following format:

var dataSource = [{
	key : '1' or 1 // string or number,
	otherProperty : ...
}];

#Usage

  1. npm install angular-transfer-box

  2. include angular-transfer-box as a dependency for your app

     angular.module('yourApp',['angular-transfer-box'])
  3. include the supplied CSS file (or create your own).

  4. Setup the directive and reference an object on your scope

Javascript:

$scope.dataSource = [{key:'item1',key:'item2',key:'item3'}];
$scope.targetKeys = [];

HTML:

<transfer origin-source="dataSource"
			target-keys="targetKeys">
</transfer>
			

Then your will see the magic scene, like this:

demo.png

#Options

angular-transfer-box support several kinds of settings with specify an obj option.

// define an option in  your controller
var transferBoxOption = {
	showSearch : true
}
// in your template
<transfer origin-source="dataSource"
			target-keys="targetKeys"
			option="transferBoxOption">
</transfer>
	

angular-transfer-box supports the following options:

  • orientation(String): the orientation between the transfer list, can be specified with "horizontal(default)" or "vertical"

  • render(Function): if you pass a complicated business-logic object into angular-tranfer-box, you may need this option to render what's you want. For example,

      var dataSource = [{
      	key : '1',
      	topic : {
      		name : 'sport',
      		id : '1'
      	}
      },{
      	key : '2',
      	topic : {
      		name : 'music',
      		id : '2'
      	}
      }]
      //we can use render to show topic.name in each transfer-list
      var option = {
      	render : function(obj){
      		return obj.topic.name;
      	}	
      }	
    	

    default

      render = functon(obj){
      	return obj.key;
      }
  • titles(Object): specified the title in each list, default

      titles : {
      	origin : 'Source List',
      	target : 'Target List'
      }
  • showSearch(Boolean): toggle the search component in angular-transfer-box, default: true

  • searchPlaceholder(String): set the placeholder content of search input, default: "Please enter your content"

  • notFoundContent(String): set the empty list content, default: "Not Found"

  • classes(String): you can set this option to customize your styles, default: ""

#License

Licensed under the GNU.