Code Monkey home page Code Monkey logo

ember-jsingla-libs's Introduction

Ember-jsingla-libs

It's a group of components that I create for a project, but can be reused on a lot of them.

Components

js-select

A simple select view, using the sample from ember-js with some modifications

js-feedback-message

A component to show a message (tipical error message, or save ok), you should use like:

{{#js-feedback-message isShowed="true" type="info" timer=15}}
	Lorem ipsum
{{/js-feedback-message}}

It has 4 arguments to configure it:

  • isShowed: If it should be showed or not
  • type: String with "info", "error" or "warning" to show as diferent color types
  • timer: the number of seconds you wish to show the messages, or null if it should be showed forever
  • hasCloseButton: If it has the button to close it.

This component should be used with boostrap or something like that.

js-date-picker

It's a date picker with selectable values, For birthday dates or something, it's not practical the tipical library with a calendar view. It uses js-select

Helpers

is-equal

A helper required by js-select

Mixins

Login

A mixin to manage the main parts of a login window. It has js-login and js-login-form as templates to show it out of the box.

Transforms

Date

It's a transform to serialize and deserialize a date without time

Utils

Feedback Message

A group of functions to create an object with the 4 main elements used on js-feedback-message, with a simple line, It includes empty (to create a non-showed message object), base (a base object, with info type), error (the same as base, but with error type) and warning.

Required (date, input & select)

An object with three functions made to easy check if a group of fields (of a form) where empty or not. You put an object with the fields as first argument, the fields names as an array in the second argument and it checks if there is a null value if it has more than x length (this requires the third argument of required-fields) or an id (only for select fields) or if a date is 1900-01-00.

ember-jsingla-libs's People

Contributors

dracks avatar ember-tomster avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.