Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Alon Weissfeld
    @alonbond
    THANK YOU!
    ShMcK
    @ShMcK
    I was scared by the acronyms, but it’s super easy stuff.
    no worries, let me know if you run into any other road blocks :)
    Alon Weissfeld
    @alonbond
    ok I'll let you know ;)
    Alon Weissfeld
    @alonbond
    Hey, so I'm trying to to flex a number input next to a select box but they are not aligning. actually it's the same as in the docs: https://formly-lumx.herokuapp.com/#/flex
    how can it be fixed?
    in the example it's the street name and type
    ShMcK
    @ShMcK
    two solutions:
    use a wrapper with a class, then push it up using margin-top: -someValue
    or use the style option
    quick question: are you using all of lumx, or just the form templates?
    Alon Weissfeld
    @alonbond
    for now it's just for the formly-form
    how do I warp it with a class?
    ShMcK
    @ShMcK
    I just made a light-weight version of the templates, but it’s not great yet. It uses some bourbon elements. I’ll post it once it’s all working well...
    Alon Weissfeld
    @alonbond
    ok
    ShMcK
    @ShMcK
    one sec, I’ll get the example running
    in the example I did this:
     templateOptions: {
            flex: {
              container: 'row',
              align: 'center center',
              gutter: 8,
              item: 3
            },
            'fields': [{
              key: 'addressStreetNumber',
              type: 'lx-input',
              templateOptions: {
                type: 'number',
                fixedLabel: true,
                label: 'Street #'
              }
            }, {
              key: 'addressStreetName',
              type: 'lx-input',
              templateOptions: {
                type: 'text',
                fixedLabel: true,
                label: 'Street'
              }
            }, {
              key: 'addressStreetType',
              type: 'lx-select',
              wrapper: 'lx-wrapper-div',
              templateOptions: {
                div: {
                  style: {
                    position: 'relative',
                    top: '-23px'
                  }
                },
                placeholder: 'Street Type',
                selected: 'type',
                choice: 'type',
                options: [
                  {type: 'St.'},
                  {type: 'Ave.'},
                  {type: 'Blvd.'},
                  {type: 'Cres.'}
                ]
              }
            }]
    note lx-wrapper-div
    it’s a <div ng-style=“to.style” ng-class=“to.class”>
    so you can adjust the spacing by setting:
    `wrapper: ‘lx-wrapper-div’,
    templateOptions: {
      div: {
        class: “className”,
       style: {
        key: value
      }
    }
    it’s a hack, but it works.
    Alon Weissfeld
    @alonbond
    ok i'll try!
    Alon Weissfeld
    @alonbond
    it does work. sorry for every little thing I'm asking for help, thanks!
    ShMcK
    @ShMcK
    really, not a problem!
    Alon Weissfeld
    @alonbond
    Hey. So I have a lx-flex with 3 inputs [lx-input, lx-input, lx-select] and I want the user to be able to add another object, for example something like a "+" button next to the lx-flex so that when the user clicks you can add another lx-felx [the same as above]. Any ideas?
    Alon Weissfeld
    @alonbond
    This message was deleted
    ShMcK
    @ShMcK
    good question…
    Might be able to do it with expression properties: https://egghead.io/lessons/angularjs-angular-formly-expressionproperties
    ShMcK
    @ShMcK
    I looked around for an easy way to do it, but I’m not too sure. I’d post the question in the angular-formly gitter
    Alon Weissfeld
    @alonbond
    I've posed it there soon we'll see..
    Alon Weissfeld
    @alonbond
    so it's something like that
    but I'm getting a hard time to defining is with the lumx
    should I extend a type of 'lx-flex' and inside have these three inputs [lx-input, lx-input, lx-select] OR should I have a templateUrl redirect to a 3 input html div (with lumx inputs) and then use the 'angular.copy' as in the example for the whole new type 'multiInput'?
    Alon Weissfeld
    @alonbond
    Something weird going on - when I'm defining a new type that extends lx-flex, every time I use it it uses the same model on all fields(!) means any value I put in one place get's duplicated in all other fields that use the same type. Any idea why?
    losorio35
    @losorio35
    hi all, formly you have performance problems in view?
    losorio35
    @losorio35
    in my project with angular one, I'm working with formly library.
    They have worked with this formly library?
    Migration complicate angular 2?
    raghunandan6
    @raghunandan6
    Hi
    I am new to this place
    can you please tell me how to start with angular js
    Sasha Hilton
    @sashahilton00
    HI guys, I am getting the error dropDownMenu.velocity is not a function, along with a whole bunch of other similar errors. Have pasted the relevant errors here: http://pastebin.com/Dk46wNKB and have also checked to make sure jquery and velocity are loaded before angular. Any ideas?
    jdimov
    @jdimov
    Hello, I'm new in angular(angular-formly) and it is little complicated for me to catch some of the patterns. I have more complicated HTML structure which array the form using specific properties. How the same design can be implemented using formly fields within? Is it possible and what is the best practice to do it?
    Kent C. Dodds
    @kentcdodds
    @jdimov I recommend you check out http://learn.angular-formly.com
    jdimov
    @jdimov
    I looked the videos but coudn't imagine how I can point to each field to show just in particular place in the HTML structure. Are there a similar examples anywhere? Should I create most complicated custom template or there is a different pattern to resolve the issue?
    Kent C. Dodds
    @kentcdodds
    Each field can have a template or templateUrl to load arbitrary HTML at any point: https://jsbin.com/yihawe/edit?html,js,output
    Kannan Thangadurai
    @kannan08
    HI All, how to delete modeldata value while hiding the field in angular formly?
    bmda
    @bmda
    Hello! Am I missing something or does Formly LumX only support a subset of the LumX component attributes? For example, I would like to specify whether the lx-display-filter attribute is true or false for any given lx-select, but I can't work out how. Can anyone help me with this?
    bmda
    @bmda
    Never mind. Solved it.