Coder Social home page Coder Social logo

atoms-app's People

Contributors

kikobeats avatar pinaypunto avatar soyjavi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

atoms-app's Issues

Improve atom.select documentation

At this moment the documentation is like:

name       : String [REQUIRED]
options    : String [OPTIONAL]
id         : String [OPTIONAL]
value      : String [OPTIONAL]
required   : Boolean [OPTIONAL]
disabled   : Boolean [OPTIONAL]
style      : String tiny|small|big [OPTIONAL]

but actually is wrong! options need to be an array of String that is the options of the select.

Or maybe can be more useful do this more easy for the user, like pass strings of options separate by commas.

(https://github.com/tapquo/atoms-app/blob/master/atom/select.coffee#L33)[I saw the code but I don't udnerstand this line]. It is possible to pass and label too?

the style of the atom select is broken too.

about restrict the template in some elements

This issue is about default template in elements and how to set the css for this elements.

I feel that, in some elements, the default template is too restrictive. For example is not possible create a button with a id, or in a list.

I think you're trying to promote CSS-OO, but some times I feel that is a little stupid declare a css class just for a button that in really should be a id (but is not possible to set up).

Must be the template so restrictive? why you don't like id?

For example, Molecule.Div is the only molecule that support id by default. (for divititis!)

[Feature Request]: edit and done function for Atom

When I'm working with Atoms I feel that I need to do some hacks to convert the elements into input, recover the user information and render the origin template for the element.

I purpose that all Atom elements have a @template, but also @editTemplate

How works?

The idea is make easy change the representation of the element. All elements have two new functions: done() and edit().

  • When you call edit() the element dynamically render the @editTemplate.
  • When you call done() the element dynamically render the @template.

An example of scaffold for Atom.Heading can be this:

class Atoms.Atom.HeadingEdit extends Atoms.Atom.Heading

  @base     : "Heading"

  @template : """
    <{{size}} {{#if.style}}class="{{style}}"{{/if.style}}>
      {{#if.image}}<img src="image" />{{/if.image}}
      {{#if.value}}{{value}}{{/if.value}}
    </{{size}}>"""

  @editTemplate: """
    <input type="{{type}}" value="{{value}}"
    {{#if.required}}{{required}}{{/if.required}}>
    """

  @default  :
    size     : "h1"
    required : false
    type     : 'text'

  constructor: ->
    super

  edit: ->
    # When the edit function is called, the @template is changed to
    # @editTemplate.

  done: ->
    # When the edit function is called, the @editTemplate is changed to
    # @template.

This make easy change the template of each element and maintain the inheritance for rewrite the methods and/or the templates for new elements. And maintain your workflow clean.

In molecules the methods call each method in the atoms that is inside in the molecule. Maybe if you want to make not editable a particular Atom you can indicate with a flag (like edit: false).

maxlength in textarea impossible to parse

I tried as string and as a number and the YAML parser explote :-S

- Atom.Textarea:
style: edit-context
maxlength:10
value: sample test

YAML report message:

message: 'JS-YAML: can not read a block mapping entry; a multiline key may not be an implicit key.

Maybe the problem is in the core, not in atoms-app.... I don't know, its very strange.

Problem Atom Namespace

When I referenced a custom Atom with different namespace in the YAML file is not possible reference the real namespace.

Imgur

yml ids are not applying in the practice

When you add an id to a label, it dont appears when rendered:

Yml(is not the complete code):

- Atom.Label:
  value: "Couldn't login!"
  style: align center
  id: error

Rendered html:

<label class="align center" data-atom-label="">
  Couldn't login!
</label>

h1 in Atom.heading is greater than h2

Exist a little conflict that doesn't permit adjust the size

h1 is all time 1.17rem (because is the size by default and h1 is the default heading, I think):

h2:

Problem Dialog Namespace

I declared a Dialog in different namespace than Atoms.App, but is only accesible for Atoms.App object

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.