angular-xeditable icon indicating copy to clipboard operation
angular-xeditable copied to clipboard

Improvement idea : type="..."

Open jpolo opened this issue 10 years ago • 1 comments

I've been using xeditable for some months and I've been very satisfied of it so far. Nevertheless there is one case that could be improved : when generating form fields from type (used often for scaffolding or some admin interface). In pseudocode the template looks like :

  for type in types : 
    switch (type) 
      when string <xeditable-text>
      when number <xeditable-number>
      when text when string <xeditable-textarea>

The fact that the directives are distinct editable-* makes it a little bit verbose and less flexible than a simple :

  for type in types : 
    <xeditable-input type="{{type}}">

jpolo avatar Jul 09 '14 09:07 jpolo

Pull requests are accepted :)

ckosloski avatar Oct 14 '16 21:10 ckosloski