All Projects → goodeggs → Ng Focus On

goodeggs / Ng Focus On

A directive to make angular elements focusable

Programming Languages

javascript
184084 projects - #8 most used programming language
coffeescript
4710 projects

Projects that are alternatives of or similar to Ng Focus On

Multicaptchabot
The best bot for collecting cryptocurrency from freebitco.in, freedoge.co.in and freenem.com 🚀🌔
Stars: ✭ 27 (-47.06%)
Mutual labels:  dom
Kirby Autofocus
Content aware image cropping for Kirby. Kirby 2 and 3.
Stars: ✭ 35 (-31.37%)
Mutual labels:  focus
React Propers
Select react doms , and update props.
Stars: ✭ 40 (-21.57%)
Mutual labels:  dom
Radi
🌀Tiny (in size) front-end framework with no extra browser re-flows
Stars: ✭ 946 (+1754.9%)
Mutual labels:  dom
Ng Zorro Antd
Angular UI Component Library based on Ant Design
Stars: ✭ 7,841 (+15274.51%)
Mutual labels:  angular-directives
Dom99
Extend html with directives
Stars: ✭ 37 (-27.45%)
Mutual labels:  dom
Easy Dom
EASYDOM-可能是最适合你的 DOM 课程
Stars: ✭ 21 (-58.82%)
Mutual labels:  dom
Element Resize Detector
Optimized cross-browser resize listener for elements.
Stars: ✭ 1,040 (+1939.22%)
Mutual labels:  dom
Xml
XML without worries
Stars: ✭ 35 (-31.37%)
Mutual labels:  dom
Layui dropdown
基于layui框架的下拉控件,支持菜单下拉,自定义下拉内容,兼容表格。
Stars: ✭ 40 (-21.57%)
Mutual labels:  dom
Vent
jQuery inspired DOM events library
Stars: ✭ 30 (-41.18%)
Mutual labels:  dom
Javascript Steppitguide
JavaScript-StepPitGuide《JavaScript踩坑指南》- 说前端简单的什么的最变态了!
Stars: ✭ 30 (-41.18%)
Mutual labels:  dom
Onthefly
🔗 Generate TinySVG, HTML and CSS on the fly
Stars: ✭ 37 (-27.45%)
Mutual labels:  dom
Angular Datetime Range
📅 Angular directive for datetime range input
Stars: ✭ 27 (-47.06%)
Mutual labels:  angular-directives
Ngx Infinite Scroll
Infinite Scroll Directive for Angular
Stars: ✭ 1,024 (+1907.84%)
Mutual labels:  angular-directives
Preact
⚛️ Fast 3kB React alternative with the same modern API. Components & Virtual DOM.
Stars: ✭ 30,527 (+59756.86%)
Mutual labels:  dom
Cosha
Colorful shadows for your images. 🎨
Stars: ✭ 988 (+1837.25%)
Mutual labels:  dom
Gomponents
Declarative view components in Go, that can render to HTML5.
Stars: ✭ 49 (-3.92%)
Mutual labels:  dom
Curtainsjs
curtains.js is a lightweight vanilla WebGL javascript library that turns HTML DOM elements into interactive textured planes.
Stars: ✭ 1,039 (+1937.25%)
Mutual labels:  dom
Hyperx
🏷 - tagged template string virtual dom builder
Stars: ✭ 991 (+1843.14%)
Mutual labels:  dom

ng-focus-on

An angularjs directive and corresponding factory to make elements focusable. It's easy!

<div ng-controller="AwesomeCtrl">
  <a href="#" ng-click="focusAwesome($event)">Focus on something awesome</a>
  <input focus-on="awesome">
</div>
angular.module('yourModule', [
  ...

  'focusOn',
  ...
]);


...


function AwesomeCtrl($scope, focus) {
  $scope.focusAwesome = function($event) {
    $event.preventDefault();
    focus('awesome');
  };
}

Installing

Credit

Thanks to this answer from blesh on StackOverflow for inspiration: http://stackoverflow.com/a/18295416/298584

Contributing

npm install
npm test

License

MIT.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].